diff --git a/app/page/selectkey.py b/app/page/selectkey.py index 860edc5..edfdf83 100644 --- a/app/page/selectkey.py +++ b/app/page/selectkey.py @@ -10,6 +10,9 @@ class SelectYubiKeyPage(QWizardPage): + def _prevent_backbutton_clicks(self): + self.setCommitPage(True) + def __init__(self, mypkcs, parent=None): super().__init__(parent) self.setTitle("Selecteer de te gebruiken yubikey") @@ -38,8 +41,9 @@ def __init__(self, mypkcs, parent=None): self.yubikeyListWidget.setItemWidget(item, itemWidget) item.setSizeHint(itemWidget.sizeHint()) - layout.addWidget(self.yubikeyListWidget) + self._prevent_backbutton_clicks() + layout.addWidget(self.yubikeyListWidget) self.yubikeyListWidget.currentItemChanged.connect(self.enableNextButton) def yubiKeySelected(self, current, _previous):