From 34dcf50ed34915b0efa54e08baca33609304c478 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 08 Nov 2002 13:41:22 +0000 Subject: added messagebox that informs the user to install citytime possibility to install automaticly would be nice... --- (limited to 'library/tzselect.cpp') diff --git a/library/tzselect.cpp b/library/tzselect.cpp index 2e5a433..335037e 100644 --- a/library/tzselect.cpp +++ b/library/tzselect.cpp @@ -29,6 +29,8 @@ #include #include +#include +#include class TimeZoneSelectorPrivate { @@ -244,8 +246,12 @@ void TimeZoneSelector::slotTzActive( int ) 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 ) -- cgit v0.9.0.2