diff --git a/articleview.cc b/articleview.cc index b1f4cd53..9263e01e 100644 --- a/articleview.cc +++ b/articleview.cc @@ -401,6 +401,8 @@ void ArticleView::showDefinition( Config::InputPhrase const & phrase, unsigned g Contexts const & contexts_ ) { currentWord = phrase.phrase.trimmed(); + if( currentWord.isEmpty() ) + return; historyMode = false; currentActiveDictIds.clear(); // first, let's stop the player @@ -485,6 +487,8 @@ void ArticleView::showDefinition( QString const & word, QStringList const & dict if( dictIDs.isEmpty() ) return; currentWord = word.trimmed(); + if( currentWord.isEmpty() ) + return; historyMode = false; // first, let's stop the player audioPlayer->stop();