From 0bf17b5bd12e978a4089e62d1b0d4a5ffed77b9b Mon Sep 17 00:00:00 2001 From: nyalldawson Date: Tue, 7 May 2013 13:12:12 +1000 Subject: [PATCH] Make sure heatmap is cancellable --- src/plugins/heatmap/heatmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/heatmap/heatmap.cpp b/src/plugins/heatmap/heatmap.cpp index 69396b7bebed..3777e60d18ad 100644 --- a/src/plugins/heatmap/heatmap.cpp +++ b/src/plugins/heatmap/heatmap.cpp @@ -204,7 +204,7 @@ void Heatmap::run() int counter = 0; QProgressDialog p( tr( "Creating heatmap" ), tr( "Abort" ), 0, totalFeatures, mQGisIface->mainWindow() ); - p.setWindowModality( Qt::WindowModal ); + p.setWindowModality( Qt::ApplicationModal ); p.show(); QgsFeature myFeature; @@ -213,6 +213,7 @@ void Heatmap::run() { counter++; p.setValue( counter ); + QApplication::processEvents(); if ( p.wasCanceled() ) { QMessageBox::information( 0, tr( "Heatmap generation aborted" ), tr( "QGIS will now load the partially-computed raster." ) );