[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepimlibs/KDE/4.9] akonadi/contact/editor: Fix error reporting by Albert Astals Cid
From: Montel Laurent <montel () kde ! org>
Date: 2012-11-16 7:07:47
Message-ID: 20121116070747.550AAA6091 () git ! kde ! org
[Download RAW message or body]
Git commit 45dd31840a4ea2f4464adefe45f2e13ecf656c58 by Montel Laurent.
Committed on 16/11/2012 at 08:07.
Pushed by mlaurent into branch 'KDE/4.9'.
Fix error reporting by Albert Astals Cid
Thanks
CCMAIL: <aacid@kde.org>
CCMAIL: kde-pim@kde.org
M +8 -7 akonadi/contact/editor/geoeditwidget.cpp
http://commits.kde.org/kdepimlibs/45dd31840a4ea2f4464adefe45f2e13ecf656c58
diff --git a/akonadi/contact/editor/geoeditwidget.cpp b/akonadi/contact/editor/geoeditwidget.cpp
index d26832e..21570ef 100644
--- a/akonadi/contact/editor/geoeditwidget.cpp
+++ b/akonadi/contact/editor/geoeditwidget.cpp
@@ -405,6 +405,12 @@ void GeoDialog::updateInputs( ExceptType type )
mLongSeconds->blockSignals( true );
mLongDirection->blockSignals( true );
+ if ( !( type & ExceptDecimal ) ) {
+ mLatitude->setValue( mCoordinates.latitude() );
+ mLongitude->setValue( mCoordinates.longitude() );
+ }
+
+
if ( !(type & ExceptSexagesimal) ) {
int degrees, minutes, seconds;
double latitude = mCoordinates.latitude();
@@ -421,7 +427,7 @@ void GeoDialog::updateInputs( ExceptType type )
mLatMinutes->setValue( minutes );
mLatSeconds->setValue( seconds );
- mLatDirection->setCurrentIndex( mLatitude < 0 ? 1 : 0 );
+ mLatDirection->setCurrentIndex( mLatitude->value() < 0 ? 1 : 0 );
degrees = (int)( longitude * 1 );
minutes = (int)( ( longitude - degrees ) * 60 );
@@ -430,12 +436,7 @@ void GeoDialog::updateInputs( ExceptType type )
mLongDegrees->setValue( degrees );
mLongMinutes->setValue( minutes );
mLongSeconds->setValue( seconds );
- mLongDirection->setCurrentIndex( mLongitude < 0 ? 1 : 0 );
- }
-
- if ( !(type & ExceptDecimal) ) {
- mLatitude->setValue( mCoordinates.latitude() );
- mLongitude->setValue( mCoordinates.longitude() );
+ mLongDirection->setCurrentIndex( mLongitude->value() < 0 ? 1 : 0 );
}
if ( !(type & ExceptCity) ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic