From c53fe1c64061c7285b7451ff48089d443721c2a9 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Wed, 7 Aug 2019 22:54:49 +0300 Subject: [PATCH] Windows: Fix crashes when all global hotkeys are disabled (issue #1184) --- mainwindow.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index 0c57929b..19e8c0a6 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -2858,7 +2858,7 @@ void MainWindow::toggleMainWindow( bool onlyShow ) show(); #ifdef Q_OS_WIN32 - if( hotkeyWrapper->handleViaDLL() ) + if( !!( hotkeyWrapper ) && hotkeyWrapper->handleViaDLL() ) { // Some dances with tambourine HWND wId = (HWND) winId(); @@ -2895,7 +2895,7 @@ void MainWindow::toggleMainWindow( bool onlyShow ) { qApp->setActiveWindow( this ); #ifdef Q_OS_WIN32 - if( hotkeyWrapper->handleViaDLL() ) + if( !!( hotkeyWrapper ) && hotkeyWrapper->handleViaDLL() ) { // Some dances with tambourine HWND wId = (HWND) winId();