File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -238,18 +238,10 @@ void QgsMapRendererCustomPainterJob::start()
238
238
QgsDebugMsg ( " Rendering prepared in (seconds): " + QString ( " %1" ).arg ( prepareTime.elapsed () / 1000.0 ) );
239
239
240
240
// now we are ready to start rendering!
241
- if ( !mLayerJobs .isEmpty () )
242
- {
243
- connect ( &mFutureWatcher , SIGNAL ( finished () ), SLOT ( futureFinished () ) );
241
+ connect ( &mFutureWatcher , SIGNAL ( finished () ), SLOT ( futureFinished () ) );
244
242
245
- mFuture = QtConcurrent::run ( staticRender, this );
246
- mFutureWatcher .setFuture ( mFuture );
247
- }
248
- else
249
- {
250
- // just make sure we will clean up and emit finished() signal
251
- QTimer::singleShot ( 0 , this , SLOT ( futureFinished () ) );
252
- }
243
+ mFuture = QtConcurrent::run ( staticRender, this );
244
+ mFutureWatcher .setFuture ( mFuture );
253
245
}
254
246
255
247
You can’t perform that action at this time.
0 commit comments