aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-06-15 16:37:03 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-06-15 16:37:03 +0100
commit13804f80de2cef845a917564adff9d9906c0eb5c (patch)
tree8a8d0940db50fb102d88e4fd1df6c5488cfe9adb
parent8bf5ba2836f8bb2d0555527947e80ea873515d03 (diff)
downloadPrismLauncher-13804f80de2cef845a917564adff9d9906c0eb5c.tar.gz
PrismLauncher-13804f80de2cef845a917564adff9d9906c0eb5c.tar.bz2
PrismLauncher-13804f80de2cef845a917564adff9d9906c0eb5c.zip
Fix trailing space in instance name
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
-rw-r--r--launcher/InstanceTask.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/InstanceTask.cpp b/launcher/InstanceTask.cpp
index 06682782..b16a40ba 100644
--- a/launcher/InstanceTask.cpp
+++ b/launcher/InstanceTask.cpp
@@ -45,7 +45,10 @@ QString InstanceName::name() const
{
if (!m_modified_name.isEmpty())
return modifiedName();
- return QString("%1 %2").arg(m_original_name, m_original_version);
+ if (!m_original_version.isEmpty())
+ return QString("%1 %2").arg(m_original_name, m_original_version);
+
+ return m_original_name;
}
QString InstanceName::originalName() const