author | tille <tille> | 2002-11-08 13:41:22 (UTC) |
---|---|---|
committer | tille <tille> | 2002-11-08 13:41:22 (UTC) |
commit | 34dcf50ed34915b0efa54e08baca33609304c478 (patch) (side-by-side diff) | |
tree | 9a63caea3174b79c36a95bfdb0bd54e29de08d1e | |
parent | 2aa75fdaeb219fffef86af1a2ca0aac0ac6731ce (diff) | |
download | opie-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...
-rw-r--r-- | library/tzselect.cpp | 8 |
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 @@ -26,12 +26,14 @@ #include "config.h" #include <qtoolbutton.h> #include <qfile.h> #include <stdlib.h> #include <qcopchannel_qws.h> +#include <qpe/qpeapplication.h> +#include <qmessagebox.h> class TimeZoneSelectorPrivate { public: TimeZoneSelectorPrivate() : includeLocal(FALSE) {} bool includeLocal; @@ -241,14 +243,18 @@ void TimeZoneSelector::slotTzActive( int ) { emit signalNewTz( cmbTz->currZone() ); } 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.")); } QStringList timezoneDefaults( void ) { QStringList tzs; // load up the list just like the file format (citytime.cpp) |