[Marble-commits] KDE/kdeedu/marble/src/lib

Jens-Michael Hoffmann jensmh at gmx.de
Tue May 11 23:55:41 CEST 2010


SVN commit 1125665 by jmhoffmann:

DownloadRegionDialog: When the selection method changes from "specify region"
to "visible region", update the (then read only) lat/lon values.

 M  +5 -0      DownloadRegionDialog.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1125664:1125665
@@ -331,7 +331,12 @@
 void DownloadRegionDialog::toggleSelectionMethod()
 {
     d->m_latLonBoxWidget->setEnabled( !d->m_latLonBoxWidget->isEnabled() );
+    // when selection method changes from "specify region" to "visible region",
+    // update the (now read only) lat/lon values
+    if ( !d->m_latLonBoxWidget->isEnabled() ) {
+        d->m_latLonBoxWidget->setLatLonBox( d->m_visibleRegion );
 }
+}
 
 void DownloadRegionDialog::updateTilesCount()
 {


More information about the Marble-commits mailing list