Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
used independent QEventLoop instead of processEvents
  • Loading branch information
luipir committed Oct 11, 2017
1 parent 8b8d085 commit 46551a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8022,7 +8022,11 @@ void QgisApp::saveEdits( QgsMapLayer *layer, bool leaveEditable, bool triggerRep
// wait
while ( mMapCanvas->isDrawing() )
{
QgsApplication::instance()->processEvents( QEventLoop::AllEvents, 100 );
QEventLoop loop;
QTimer t;
connect( &t, SIGNAL( timeout() ), &loop, SLOT( quit() ) );
t.start( 100 );
loop.exec();
}
// remove wait message
messageBar()->popWidget( item );
Expand Down

0 comments on commit 46551a9

Please sign in to comment.