Skip to content

Commit

Permalink
Cancel simplification if its dialog is closed (fixes #15163)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jun 29, 2016
1 parent 51c6d8a commit 48284f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/qgsmaptoolsimplify.cpp
Expand Up @@ -52,6 +52,12 @@ void QgsSimplifyDialog::enableOkButton( bool enabled )
okButton->setEnabled( enabled );
}

void QgsSimplifyDialog::closeEvent( QCloseEvent* e )
{
QDialog::closeEvent( e );
mTool->clearSelection();
}


////////////////////////////////////////////////////////////////////////////

Expand Down
5 changes: 5 additions & 0 deletions src/app/qgsmaptoolsimplify.h
Expand Up @@ -38,6 +38,11 @@ class APP_EXPORT QgsSimplifyDialog : public QDialog, private Ui::SimplifyLineDia
void updateStatusText();
void enableOkButton( bool enabled );

protected:

//! Also cancels pending simplification
virtual void closeEvent( QCloseEvent* e ) override;

private:
QgsMapToolSimplify* mTool;

Expand Down

0 comments on commit 48284f7

Please sign in to comment.