mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
[processing] Destroy widgets from an algorithm dialog as soon as it is rejected
This commit is contained in:
parent
576c2f3ff8
commit
8a7feeddbb
@ -182,6 +182,9 @@ Copies the current log contents to the clipboard.
|
||||
Switches the dialog to the parameters page.
|
||||
%End
|
||||
|
||||
virtual void reject();
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
virtual void closeEvent( QCloseEvent *e );
|
||||
|
||||
@ -662,6 +662,15 @@ void QgsProcessingAlgorithmDialogBase::setInfo( const QString &message, bool isE
|
||||
processEvents();
|
||||
}
|
||||
|
||||
void QgsProcessingAlgorithmDialogBase::reject()
|
||||
{
|
||||
if ( !mAlgorithmTask )
|
||||
{
|
||||
setAttribute( Qt::WA_DeleteOnClose );
|
||||
}
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
//
|
||||
// QgsProcessingAlgorithmProgressDialog
|
||||
//
|
||||
|
||||
@ -230,6 +230,8 @@ class GUI_EXPORT QgsProcessingAlgorithmDialogBase : public QDialog, public QgsPr
|
||||
*/
|
||||
void showParameters();
|
||||
|
||||
void reject() override;
|
||||
|
||||
protected:
|
||||
|
||||
void closeEvent( QCloseEvent *e ) override;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user