diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index e8e30a7..7a81698 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -186,7 +186,8 @@ void audioMute() break; case 2: // only currently focused instance - if (!mainWindow->isActiveWindow()) audioMuted = true; + if (mainWindow != nullptr) + audioMuted = !mainWindow->isActiveWindow(); break; } } |