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 52882a93a5
commit fa4d6df4c5
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();
}
});