mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Windows: Fix crashes when all global hotkeys are disabled (issue #1184)
This commit is contained in:
parent
a722b3f43d
commit
c53fe1c640
|
@ -2858,7 +2858,7 @@ void MainWindow::toggleMainWindow( bool onlyShow )
|
||||||
show();
|
show();
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
if( hotkeyWrapper->handleViaDLL() )
|
if( !!( hotkeyWrapper ) && hotkeyWrapper->handleViaDLL() )
|
||||||
{
|
{
|
||||||
// Some dances with tambourine
|
// Some dances with tambourine
|
||||||
HWND wId = (HWND) winId();
|
HWND wId = (HWND) winId();
|
||||||
|
@ -2895,7 +2895,7 @@ void MainWindow::toggleMainWindow( bool onlyShow )
|
||||||
{
|
{
|
||||||
qApp->setActiveWindow( this );
|
qApp->setActiveWindow( this );
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
if( hotkeyWrapper->handleViaDLL() )
|
if( !!( hotkeyWrapper ) && hotkeyWrapper->handleViaDLL() )
|
||||||
{
|
{
|
||||||
// Some dances with tambourine
|
// Some dances with tambourine
|
||||||
HWND wId = (HWND) winId();
|
HWND wId = (HWND) winId();
|
||||||
|
|
Loading…
Reference in a new issue