From 80e9064179afa4c4969806992bc4171fb5150887 Mon Sep 17 00:00:00 2001 From: Sean Maas Date: Tue, 26 May 2015 22:35:08 -0400 Subject: [PATCH] QT: Keep the render window invisible until emulation starts --- src/citra_qt/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index f6010459a..626f54a74 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -316,7 +316,8 @@ void GMainWindow::ToggleWindowMode() { // Render in the main window... render_window->BackupGeometry(); ui.horizontalLayout->addWidget(render_window); - render_window->setVisible(true); + if (emu_thread != nullptr) + render_window->setVisible(true); render_window->setFocusPolicy(Qt::ClickFocus); render_window->setFocus(); @@ -324,7 +325,8 @@ void GMainWindow::ToggleWindowMode() { // Render in a separate window... ui.horizontalLayout->removeWidget(render_window); render_window->setParent(nullptr); - render_window->setVisible(true); + if (emu_thread != nullptr) + render_window->setVisible(true); render_window->RestoreGeometry(); render_window->setFocusPolicy(Qt::NoFocus); }