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

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


SVN commit 1125662 by jmhoffmann:

Pass the kpart's widget as parent to DownloadRegionDialog's constructor.

 M  +1 -2      marble_part.cpp  


--- trunk/KDE/kdeedu/marble/src/marble_part.cpp #1125661:1125662
@@ -142,7 +142,6 @@
 {
     writeSettings();
 
-    delete m_downloadRegionDialog;
     // Check whether this delete is really needed.
     delete m_configDialog;
 }
@@ -993,7 +992,7 @@
     ViewportParams * const viewport = m_controlView->marbleWidget()->map()->viewParams()->viewport();
     MarbleModel * const model = m_controlView->marbleWidget()->map()->model();
     if ( !m_downloadRegionDialog ) {
-        m_downloadRegionDialog = new DownloadRegionDialog( viewport, model );
+        m_downloadRegionDialog = new DownloadRegionDialog( viewport, model, widget() );
         connectDownloadRegionDialog();
     }
     // FIXME: get allowed range from current map theme


More information about the Marble-commits mailing list