[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/plugins/render/panoramio
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2009-04-27 18:53:47
Message-ID: 1240858427.976563.23688.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 960010 by sengels:

better erase after trying to access it


 M  +2 -1      AbstractDataPluginModel.cpp  


--- trunk/KDE/kdeedu/marble/src/plugins/render/panoramio/AbstractDataPluginModel.cpp #960009:960010
@@ -242,13 +242,14 @@
             
             (*i)->addDownloadedFile( generateFilepath( widgetId, fileType ), 
                                      fileType );
-            d->m_downloadingWidgets.erase( i );
             
             // If the file is ready for displaying, it can be added to the list of
             // initialized widgets
             if( (*i)->initialized() ) {
                 addWidgetToList( *i );
             }
+
+            d->m_downloadingWidgets.erase( i );
         }
     }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic