summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp10
-rw-r--r--noncore/apps/odict/odict.pro3
2 files changed, 11 insertions, 2 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,7 +95,15 @@ void ODict::slotDisplayAbout()
void ODict::slotStartQuery()
{
QString querystring = query_le->text();
- DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name);
+ qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1());
+ if (querystring.isEmpty()){
+ qWarning("emphty querysting");
+ return;
+ }
+ if (!activated_name || activated_name.isEmpty())
+ QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") );
+ else
+ DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name);
}
diff --git a/noncore/apps/odict/odict.pro b/noncore/apps/odict/odict.pro
index e39fa95..23ef0e0 100644
--- a/noncore/apps/odict/odict.pro
+++ b/noncore/apps/odict/odict.pro
@@ -1,5 +1,6 @@
TEMPLATE = app
-CONFIG = qt warn_on release
+CONFIG = qt warn_on debug
+#CONFIG = qt warn_on release
HEADERS = odict.h \
searchmethoddlg.h \
configdlg.h \