From 62a7bdfca8dda71b9891d78e6e58a6df75388987 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 3 May 2021 13:25:24 +0200 Subject: [PATCH] show event won't be skipped --- openpype/tools/settings/widgets.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/openpype/tools/settings/widgets.py b/openpype/tools/settings/widgets.py index 1343d8257a..00a8749bfd 100644 --- a/openpype/tools/settings/widgets.py +++ b/openpype/tools/settings/widgets.py @@ -30,9 +30,6 @@ class PasswordDialog(QtWidgets.QDialog): password_input = QtWidgets.QLineEdit(password_widget) password_input.setEchoMode(QtWidgets.QLineEdit.Password) - current_dir = os.path.join( - os.path.dirname(os.path.abspath(__file__)) - ) show_password_icon_path = get_resource("images", "eye.png") show_password_icon = QtGui.QIcon(show_password_icon_path) show_password_btn = QtWidgets.QPushButton(password_widget) @@ -88,11 +85,6 @@ class PasswordDialog(QtWidgets.QDialog): return event.accept() super(PasswordDialog, self).keyPressEvent(event) - def showEvent(self, event): - super(PasswordDialog, self).showEvent(event) - if self.result(): - self.close() - def closeEvent(self, event): self.finished.emit(self.result()) super(PasswordDialog, self).closeEvent(event)