Skip to content

Commit

Permalink
Merge pull request #5549 from Starsam80/qt-title
Browse files Browse the repository at this point in the history
Qt: Add the version to the window title
  • Loading branch information
shuffle2 committed Jun 6, 2017
2 parents 59bf761 + e04480e commit bc8024e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Core/DolphinQt2/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <QIcon>
#include <QMessageBox>

#include "Common/Common.h"

#include "Core/BootManager.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
Expand All @@ -32,7 +34,7 @@

MainWindow::MainWindow() : QMainWindow(nullptr)
{
setWindowTitle(tr("Dolphin"));
setWindowTitle(QString::fromStdString(scm_rev_str));
setWindowIcon(QIcon(Resources::GetMisc(Resources::LOGO_SMALL)));
setUnifiedTitleAndToolBarOnMac(true);

Expand Down Expand Up @@ -337,7 +339,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();
}
Expand Down

0 comments on commit bc8024e

Please sign in to comment.