mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Scan popup: Fix filling of suggestion list when muted dictionaries are presented
This commit is contained in:
parent
59a4181437
commit
c8f0354227
11
scanpopup.cc
11
scanpopup.cc
|
@ -429,10 +429,6 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus )
|
|||
|
||||
definition->setSelectionBySingleClick( cfg.preferences.selectWordBySingleClick );
|
||||
|
||||
/// Too large strings make window expand which is probably not what user
|
||||
/// wants
|
||||
ui.translateBox->setText( inputWord, false );
|
||||
|
||||
if ( !isVisible() )
|
||||
{
|
||||
// Need to show the window
|
||||
|
@ -504,6 +500,10 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus )
|
|||
if ( ui.pinButton->isChecked() )
|
||||
setWindowTitle( tr( "%1 - %2" ).arg( elideInputWord(), "GoldenDict" ) );
|
||||
|
||||
/// Too large strings make window expand which is probably not what user
|
||||
/// wants
|
||||
ui.translateBox->setText( inputWord, false );
|
||||
|
||||
showTranslationFor( inputWord );
|
||||
}
|
||||
|
||||
|
@ -1001,6 +1001,9 @@ void ScanPopup::updateDictionaryBar()
|
|||
|
||||
void ScanPopup::mutedDictionariesChanged()
|
||||
{
|
||||
// Update suggestion list
|
||||
translateInputChanged( ui.translateBox->translateLine()->text() );
|
||||
|
||||
if ( dictionaryBar.toggleViewAction()->isChecked() )
|
||||
definition->updateMutedContents();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue