summaryrefslogtreecommitdiff
Unidiff
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
@@ -94,9 +94,17 @@ void ODict::slotDisplayAbout()
94 94
95void ODict::slotStartQuery() 95void ODict::slotStartQuery()
96{ 96{
97 QString querystring = query_le->text(); 97 QString querystring = query_le->text();
98 DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name); 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
106 DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name);
99} 107}
100 108
101 109
102void ODict::slotSetErrorcount( int count ) 110void ODict::slotSetErrorcount( int count )
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,6 +1,7 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG = qt warn_on release 2 CONFIG = qt warn_on debug
3 #CONFIG = qt warn_on release
3 HEADERS = odict.h \ 4 HEADERS = odict.h \
4 searchmethoddlg.h \ 5 searchmethoddlg.h \
5 configdlg.h \ 6 configdlg.h \
6 dingwidget.h \ 7 dingwidget.h \