Skip to content
Permalink
Browse files

Fix map canvas preview

Followup 8e20076
  • Loading branch information
m-kuhn committed Aug 9, 2017
1 parent ba5f114 commit a4597c5db5bb339888144cd8ca9b9997547c36c4
Showing with 8 additions and 1 deletion.
  1. +7 −1 src/gui/qgsmapcanvas.cpp
  2. +1 −0 src/gui/qgsmapcanvas.h
@@ -2169,7 +2169,13 @@ void QgsMapCanvas::startPreviewJob( int number )
{
mPreviewTimer.setSingleShot( true );
mPreviewTimer.setInterval( 10 );
connect( &mPreviewTimer, &QTimer::timeout, [ = ]() { startPreviewJob( number + 1 ); } );
disconnect( mPreviewTimerConnection );
mPreviewTimerConnection = connect( &mPreviewTimer, &QTimer::timeout, [ = ]()
{
startPreviewJob( number + 1 );
}
);
mPreviewTimer.start();
}
}

@@ -848,6 +848,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
QTimer mAutoRefreshTimer;

QTimer mPreviewTimer;
QMetaObject::Connection mPreviewTimerConnection;

QString mTheme;

0 comments on commit a4597c5

Please sign in to comment.
You can’t perform that action at this time.