[Kde-pim] [kdepimlibs/KDE/4.9] akonadi/contact/editor: Fix error reporting by Albert Astals Cid

Montel Laurent montel at kde.org
Fri Nov 16 07:07:47 GMT 2012


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 at kde.org>
CCMAIL: kde-pim at 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) ) {
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list