1
0

qt: submit final state to wizard and return proper dialog result when finished

This commit is contained in:
Sander van Grieken
2023-07-27 23:22:45 +02:00
parent 2407fab178
commit 4a12b285e4
2 changed files with 27 additions and 23 deletions

View File

@@ -143,8 +143,9 @@ class QEAbstractWizard(QDialog):
page.apply()
wd = page.wizard_data.copy()
if self.is_last(wd):
self.submit(wd)
self.finished(wd)
self.close()
self.accept()
else:
next = self.submit(wd)
self.load_next_component(next['view'], wd)