From 3dc02dc81cc590f8faf093765195780f20622879 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 5 Aug 2015 18:10:33 -0700 Subject: [PATCH] Qt: Set window path to loaded ROM --- CHANGES | 1 + src/platform/qt/Window.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 5d52ef752..b3a18ad7e 100644 --- a/CHANGES +++ b/CHANGES @@ -114,6 +114,7 @@ Misc: - Qt: Gamepads can now have both buttons and analog axes mapped to the same key - Qt: Increase usability of key mapper - Qt: Show checkmark for window sizes + - Qt: Set window path to loaded ROM 0.2.1: (2015-05-13) Bugfixes: diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index 94b007c25..60b8861ee 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -545,6 +545,7 @@ void Window::gameStarted(GBAThread* context) { action->setDisabled(false); } if (context->fname) { + setWindowFilePath(context->fname); appendMRU(context->fname); } updateTitle(); @@ -564,6 +565,7 @@ void Window::gameStopped() { foreach (QAction* action, m_gameActions) { action->setDisabled(true); } + setWindowFilePath(QString()); updateTitle(); detachWidget(m_display); m_screenWidget->setLockAspectRatio(m_logo.width(), m_logo.height());