qt wizard: set focus on next_button
This commit is contained in:
@@ -126,6 +126,7 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
|
|||||||
self.load_next_component(viewstate.view, viewstate.wizard_data, viewstate.params)
|
self.load_next_component(viewstate.view, viewstate.wizard_data, viewstate.params)
|
||||||
# TODO: re-test if needed on macOS
|
# TODO: re-test if needed on macOS
|
||||||
self.refresh_gui() # Need for QT on MacOSX. Lame.
|
self.refresh_gui() # Need for QT on MacOSX. Lame.
|
||||||
|
self.next_button.setFocus() # setDefault() is not enough
|
||||||
|
|
||||||
def refresh_gui(self):
|
def refresh_gui(self):
|
||||||
# For some reason, to refresh the GUI this needs to be called twice
|
# For some reason, to refresh the GUI this needs to be called twice
|
||||||
|
|||||||
Reference in New Issue
Block a user