mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Fix crash when right clicking dicts list if scan pop is disabled
This commit is contained in:
parent
10cdaccb4e
commit
a33e52a321
|
@ -3455,8 +3455,10 @@ void MainWindow::foundDictsContextMenuRequested( const QPoint &pos )
|
||||||
|
|
||||||
if( cfg.editDictionaryCommandLine.isEmpty() || dictFilename.isEmpty() )
|
if( cfg.editDictionaryCommandLine.isEmpty() || dictFilename.isEmpty() )
|
||||||
{
|
{
|
||||||
|
if ( scanPopup )
|
||||||
scanPopup.get()->blockSignals( true );
|
scanPopup.get()->blockSignals( true );
|
||||||
showDictionaryInfo( id );
|
showDictionaryInfo( id );
|
||||||
|
if ( scanPopup )
|
||||||
scanPopup.get()->blockSignals( false );
|
scanPopup.get()->blockSignals( false );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -3469,8 +3471,10 @@ void MainWindow::foundDictsContextMenuRequested( const QPoint &pos )
|
||||||
|
|
||||||
if( result && result == infoAction )
|
if( result && result == infoAction )
|
||||||
{
|
{
|
||||||
|
if ( scanPopup )
|
||||||
scanPopup.get()->blockSignals( true );
|
scanPopup.get()->blockSignals( true );
|
||||||
showDictionaryInfo( id );
|
showDictionaryInfo( id );
|
||||||
|
if ( scanPopup )
|
||||||
scanPopup.get()->blockSignals( false );
|
scanPopup.get()->blockSignals( false );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue