Skip to content
Permalink
Browse files

Cancel simplification if its dialog is closed (fixes #15163)

  • Loading branch information
wonder-sk committed Jun 29, 2016
1 parent 51c6d8a commit 48284f7884673ff5d7939d28a8193d92590579b4
Showing with 11 additions and 0 deletions.
  1. +6 −0 src/app/qgsmaptoolsimplify.cpp
  2. +5 −0 src/app/qgsmaptoolsimplify.h
@@ -52,6 +52,12 @@ void QgsSimplifyDialog::enableOkButton( bool enabled )
okButton->setEnabled( enabled );
}

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


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

@@ -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;

0 comments on commit 48284f7

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