summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorStarsam80 <samraskauskas@gmail.com>2017-06-05 12:36:30 -0600
committerStarsam80 <samraskauskas@gmail.com>2017-06-05 12:36:30 -0600
commite04480e5f5fa93c718999f54afbbd85acfd73843 (patch)
tree4fadbc2b19c7377df00cfbe893ea52d8759e90b2 /Source
parent75d686e2c79e2835be67e18d4bb8528f3bce2846 (diff)
Qt: Add the version to the window title
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index 3382cee4c0..1d487ac3c6 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -7,6 +7,8 @@
#include <QIcon>
#include <QMessageBox>
+#include "Common/Common.h"
+
#include "Core/BootManager.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
@@ -33,7 +35,7 @@
MainWindow::MainWindow() : QMainWindow(nullptr)
{
- setWindowTitle(tr("Dolphin"));
+ setWindowTitle(QString::fromStdString(scm_rev_str));
setWindowIcon(QIcon(Resources::GetMisc(Resources::LOGO_SMALL)));
setUnifiedTitleAndToolBarOnMac(true);
@@ -347,7 +349,7 @@ void MainWindow::HideRenderWidget()
m_render_widget->setParent(nullptr);
m_rendering_to_main = false;
disconnect(Host::GetInstance(), &Host::RequestTitle, this, &MainWindow::setWindowTitle);
- setWindowTitle(tr("Dolphin"));
+ setWindowTitle(QString::fromStdString(scm_rev_str));
}
m_render_widget->hide();
}