summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qwizard.h
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-22 12:58:48 (GMT)
committerjasplin <qt-info@nokia.com>2009-06-22 13:09:28 (GMT)
commit938592604e3689f4369d5babd2387ec8af8839bb (patch)
tree8d8b8b87da5867466e6137fa3cda0a00d6d4f17f /src/gui/dialogs/qwizard.h
parentab3a7760008ed6723f978a06aa52bee57b34d68d (diff)
downloadQt-938592604e3689f4369d5babd2387ec8af8839bb.zip
Qt-938592604e3689f4369d5babd2387ec8af8839bb.tar.gz
Qt-938592604e3689f4369d5babd2387ec8af8839bb.tar.bz2
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 1d1a9b5..d1f9cf7 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;
};