Fix ss crash on game menu, fix ss on windowed mode

This commit is contained in:
Ameer 2020-07-06 17:30:28 -04:00
parent b2997e5402
commit e12d73f7f8
3 changed files with 7 additions and 5 deletions

View file

@ -753,7 +753,7 @@ void GMainWindow::InitializeHotkeys() {
});
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Capture Screenshot"), this),
&QShortcut::activated, this, [&] {
if (emu_thread->IsRunning()) {
if (emu_thread != nullptr && emu_thread->IsRunning()) {
OnCaptureScreenshot();
}
});