-rw-r--r-- | noncore/apps/odict/odict.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 2857c65..e2d1d7b 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -95,6 +95,14 @@ void ODict::slotDisplayAbout() | |||
95 | void ODict::slotStartQuery() | 95 | void ODict::slotStartQuery() |
96 | { | 96 | { |
97 | QString querystring = query_le->text(); | 97 | QString querystring = query_le->text(); |
98 | qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); | ||
99 | if (querystring.isEmpty()){ | ||
100 | qWarning("emphty querysting"); | ||
101 | return; | ||
102 | } | ||
103 | if (!activated_name || activated_name.isEmpty()) | ||
104 | QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); | ||
105 | else | ||
98 | DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name); | 106 | DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name); |
99 | } | 107 | } |
100 | 108 | ||