author | tille <tille> | 2002-11-08 13:41:22 (UTC) |
---|---|---|
committer | tille <tille> | 2002-11-08 13:41:22 (UTC) |
commit | 34dcf50ed34915b0efa54e08baca33609304c478 (patch) (unidiff) | |
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 | |||
@@ -28,8 +28,10 @@ | |||
28 | #include <qfile.h> | 28 | #include <qfile.h> |
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | 30 | ||
31 | #include <qcopchannel_qws.h> | 31 | #include <qcopchannel_qws.h> |
32 | #include <qpe/qpeapplication.h> | ||
33 | #include <qmessagebox.h> | ||
32 | 34 | ||
33 | class TimeZoneSelectorPrivate | 35 | class TimeZoneSelectorPrivate |
34 | { | 36 | { |
35 | public: | 37 | public: |
@@ -243,10 +245,14 @@ void TimeZoneSelector::slotTzActive( int ) | |||
243 | } | 245 | } |
244 | 246 | ||
245 | void TimeZoneSelector::slotExecute( void ) | 247 | void TimeZoneSelector::slotExecute( void ) |
246 | { | 248 | { |
247 | // execute the world time application... | 249 | // execute the world time application... |
250 | if (QFile::exists(QPEApplication::qpeDir()+"bin/citytime")) | ||
248 | Global::execute( "citytime" ); | 251 | Global::execute( "citytime" ); |
252 | else | ||
253 | QMessageBox::warning(this,tr("citytime executable not found"), | ||
254 | tr("In order to choose the time zones,\nplease install citytime.")); | ||
249 | } | 255 | } |
250 | 256 | ||
251 | QStringList timezoneDefaults( void ) | 257 | QStringList timezoneDefaults( void ) |
252 | { | 258 | { |