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