From: Roman Moravcik Date: Thu, 18 Feb 2010 16:45:01 +0000 (+0100) Subject: Imported version 0.4-4 X-Git-Tag: v0.4-4 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=e665ac0ae85db53d74bc6e99182f0e2316b92cb9;p=mstardict Imported version 0.4-4 --- diff --git a/debian/changelog b/debian/changelog index 350d405..baf1b06 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,13 @@ +mstardict (0.4-4) unstable; urgency=low + + * Result window was showing "No search reasult" after Enter + key was pressed. + + -- Roman Moravcik Wed, 10 Feb 2010 17:12:11 +0100 + mstardict (0.4-3) unstable; urgency=low - * Make package depend of ttf-freefont. + * Make package depend on ttf-freefont. * Added clear button. * Fixed wrapping of lines in translation window. diff --git a/src/mstardict.cpp b/src/mstardict.cpp index 1b9e0a6..7880e65 100644 --- a/src/mstardict.cpp +++ b/src/mstardict.cpp @@ -454,6 +454,11 @@ MStarDict::SearchWord() switch (analyse_query(sWord, query)) { case qtDATA: bFound = oLibs->LookupData(query.c_str()); + + if (bFound) + ShowNoResults(false); + else + ShowNoResults(true); break; default: /* nothing */ ; @@ -461,11 +466,6 @@ MStarDict::SearchWord() /* unselect selected rows */ ResultsUnselectAll(GTK_SELECTION_SINGLE); - - if (bFound) - ShowNoResults(false); - else - ShowNoResults(true); } }