summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorForkk <forkk@forkk.net>2014-01-08 18:02:15 -0600
committerForkk <forkk@forkk.net>2014-01-08 18:02:15 -0600
commitb767d4b134148ddb3f956253a2f7f2cad831e782 (patch)
tree83d2f49d9e694bdd8f8d2cdd3879e696f435ba10
parentb4fcbab5135205d64b34d1774b2efd7c3dd56672 (diff)
downloadMultiMC-b767d4b134148ddb3f956253a2f7f2cad831e782.tar
MultiMC-b767d4b134148ddb3f956253a2f7f2cad831e782.tar.gz
MultiMC-b767d4b134148ddb3f956253a2f7f2cad831e782.tar.lz
MultiMC-b767d4b134148ddb3f956253a2f7f2cad831e782.tar.xz
MultiMC-b767d4b134148ddb3f956253a2f7f2cad831e782.zip
Fix the window title
The window title now says "MultiMC 5 - Version <version> [on <platform>]"
-rw-r--r--gui/MainWindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index 905d14cf..69cdf602 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -99,7 +99,11 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
{
MultiMCPlatform::fixWM_CLASS(this);
ui->setupUi(this);
- setWindowTitle(QString("MultiMC %1").arg(MMC->version().toString()));
+
+ QString winTitle = QString("MultiMC 5 - Version %1").arg(MMC->version().toString());
+ if (!MMC->version().platform.isEmpty())
+ winTitle += " on " + MMC->version().platform;
+ setWindowTitle(winTitle);
// OSX magic.
// setUnifiedTitleAndToolBarOnMac(true);