Skip to content
Permalink
Browse files

Make sure heatmap is cancellable

  • Loading branch information
nyalldawson committed May 7, 2013
1 parent 9a8ad74 commit 0bf17b5bd12e978a4089e62d1b0d4a5ffed77b9b
Showing with 2 additions and 1 deletion.
  1. +2 −1 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." ) );

0 comments on commit 0bf17b5

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