diff options
Diffstat (limited to 'src/widgets/dialogs/qwizard.cpp')
-rw-r--r-- | src/widgets/dialogs/qwizard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qwizard.cpp b/src/widgets/dialogs/qwizard.cpp index efd661e829..24d996dad4 100644 --- a/src/widgets/dialogs/qwizard.cpp +++ b/src/widgets/dialogs/qwizard.cpp @@ -2207,7 +2207,7 @@ int QWizard::addPage(QWizardPage *page) Q_D(QWizard); int theid = 0; if (!d->pageMap.isEmpty()) - theid = (d->pageMap.constEnd() - 1).key() + 1; + theid = d->pageMap.lastKey() + 1; setPage(theid, page); return theid; } |