Commit cfa6aee9 authored by Ramon Buldó's avatar Ramon Buldó Committed by GitHub

Merge pull request #127 from vfjpl/master

Fixed buttons in TimeZoneSelector window
parents 7eb99f64 178b4404
......@@ -79,8 +79,8 @@ TimeDateCommon::showTimeZoneSelector( QString& currentTimeZone )
QString region = currentTimeZone.split( "/" ).value( 0 );
QString zone = currentTimeZone.split( "/" ).value( 1 );
dialog.init( region, zone );
dialog.exec();
if ( dialog.currentLocation() != currentTimeZone )
if ( dialog.exec() == QDialog::Accepted )
return dialog.currentLocation();
else
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