Commit 178b4404 authored by vfjpl's avatar vfjpl
Browse files

Fixed buttons in TimeZoneSelector window

parent 845224e9
...@@ -79,8 +79,8 @@ TimeDateCommon::showTimeZoneSelector( QString& currentTimeZone ) ...@@ -79,8 +79,8 @@ TimeDateCommon::showTimeZoneSelector( QString& currentTimeZone )
QString region = currentTimeZone.split( "/" ).value( 0 ); QString region = currentTimeZone.split( "/" ).value( 0 );
QString zone = currentTimeZone.split( "/" ).value( 1 ); QString zone = currentTimeZone.split( "/" ).value( 1 );
dialog.init( region, zone ); dialog.init( region, zone );
dialog.exec();
if ( dialog.currentLocation() != currentTimeZone ) if ( dialog.exec() == QDialog::Accepted )
return dialog.currentLocation(); return dialog.currentLocation();
else else
return QString(); return QString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment