Qt: Set window path to loaded ROM

This commit is contained in:
Jeffrey Pfau 2015-08-05 18:10:33 -07:00
parent 8e735a4668
commit 3dc02dc81c
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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());