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

Dennis Nienhüser earthwings at gentoo.org
Fri Nov 19 22:55:16 CET 2010


SVN commit 1198826 by nienhueser:

When a runner is active when quitting the application, the watchdog's timeout signal may get lost, resulting in the local event loop still being executed and Marble hanging. Connect aboutToQuit to the quit() slot to avoid that.

 M  +1 -0      RunnerTask.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/RunnerTask.cpp #1198825:1198826
@@ -23,6 +23,7 @@
     QObject::connect( &watchdog, SIGNAL( timeout() ), &localEventLoop, SLOT( quit() ) );
     runTask( &localEventLoop );
     watchdog.start( 30 * 1000 );
+    QObject::connect( QCoreApplication::instance(), SIGNAL( aboutToQuit() ), &localEventLoop, SLOT( quit() ) );
     localEventLoop.exec();
 
     if( watchdog.isActive() ) {


More information about the Marble-commits mailing list