summaryrefslogtreecommitdiff
path: root/src/gui/dialogs/qwizard.h
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-22 14:58:48 +0200
committerjasplin <qt-info@nokia.com>2009-06-22 15:09:28 +0200
commit938592604e3689f4369d5babd2387ec8af8839bb (patch)
tree8d8b8b87da5867466e6137fa3cda0a00d6d4f17f /src/gui/dialogs/qwizard.h
parentab3a7760008ed6723f978a06aa52bee57b34d68d (diff)
downloadqt4-tools-938592604e3689f4369d5babd2387ec8af8839bb.tar.gz
Prevented QWizard from crashing upon removing a page after deleting a field object.
QWizard crashed when removing a page after deleting an object that was already registered as a field for the page. This patch prevents such a crash by doing the necessary cleanup immediately when the object is deleted. QWizard::removePage() will then see a consistent state in this case. Reviewed-by: janarve Task-number: 255350
Diffstat (limited to 'src/gui/dialogs/qwizard.h')
-rw-r--r--src/gui/dialogs/qwizard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/dialogs/qwizard.h b/src/gui/dialogs/qwizard.h
index 1d1a9b52d3..d1f9cf70a7 100644
--- a/src/gui/dialogs/qwizard.h
+++ b/src/gui/dialogs/qwizard.h
@@ -197,6 +197,7 @@ private:
Q_DECLARE_PRIVATE(QWizard)
Q_PRIVATE_SLOT(d_func(), void _q_emitCustomButtonClicked())
Q_PRIVATE_SLOT(d_func(), void _q_updateButtonStates())
+ Q_PRIVATE_SLOT(d_func(), void _q_handleFieldObjectDestroyed(QObject *))
friend class QWizardPage;
};