-rw-r--r-- | library/tzselect.cpp | 6 |
1 files changed, 6 insertions, 0 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 @@ #include <qfile.h> #include <stdlib.h> #include <qcopchannel_qws.h> +#include <qpe/qpeapplication.h> +#include <qmessagebox.h> class TimeZoneSelectorPrivate { public: @@ -244,9 +246,13 @@ void TimeZoneSelector::slotTzActive( int ) void TimeZoneSelector::slotExecute( void ) { // 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 ) { |