summaryrefslogtreecommitdiff
authortille <tille>2002-11-08 13:41:22 (UTC)
committer tille <tille>2002-11-08 13:41:22 (UTC)
commit34dcf50ed34915b0efa54e08baca33609304c478 (patch) (side-by-side diff)
tree9a63caea3174b79c36a95bfdb0bd54e29de08d1e
parent2aa75fdaeb219fffef86af1a2ca0aac0ac6731ce (diff)
downloadopie-34dcf50ed34915b0efa54e08baca33609304c478.zip
opie-34dcf50ed34915b0efa54e08baca33609304c478.tar.gz
opie-34dcf50ed34915b0efa54e08baca33609304c478.tar.bz2
added messagebox that informs the user to install citytime
possibility to install automaticly would be nice...
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/tzselect.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/tzselect.cpp b/library/tzselect.cpp
index 2e5a433..335037e 100644
--- a/library/tzselect.cpp
+++ b/library/tzselect.cpp
@@ -31,2 +31,4 @@
#include <qcopchannel_qws.h>
+#include <qpe/qpeapplication.h>
+#include <qmessagebox.h>
@@ -246,4 +248,8 @@ void TimeZoneSelector::slotExecute( void )
{
- // execute the world time application...
+ // execute the world time application...
+ if (QFile::exists(QPEApplication::qpeDir()+"bin/citytime"))
Global::execute( "citytime" );
+ else
+ QMessageBox::warning(this,tr("citytime executable not found"),
+ tr("In order to choose the time zones,\nplease install citytime."));
}