mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix regression involving displayed screenshots in savestate view
This commit is contained in:
parent
36af5fba87
commit
f136fa040c
|
@ -880,7 +880,6 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::attachWidget(QWidget* widget) {
|
void Window::attachWidget(QWidget* widget) {
|
||||||
m_screenWidget->clear();
|
|
||||||
m_screenWidget->layout()->addWidget(widget);
|
m_screenWidget->layout()->addWidget(widget);
|
||||||
static_cast<QStackedLayout*>(m_screenWidget->layout())->setCurrentWidget(widget);
|
static_cast<QStackedLayout*>(m_screenWidget->layout())->setCurrentWidget(widget);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue