diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-04-22 13:33:37 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-04-22 13:33:37 -0300 |
commit | b0dc286e5381d3328f3408b97541818e47865ad5 (patch) | |
tree | 25ae1ed2b89969d2a85623c9cb684c4fb1533a4e /src/leap/bitmask/gui/advanced_key_management.py | |
parent | eb940b04bd2921974b094150a763ad8b9bbae8ca (diff) |
Use QDialog as base for AKM.
This allows the akm to be treated as a preferences dialog instead of an
extra 'main window'.
Diffstat (limited to 'src/leap/bitmask/gui/advanced_key_management.py')
-rw-r--r-- | src/leap/bitmask/gui/advanced_key_management.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/leap/bitmask/gui/advanced_key_management.py b/src/leap/bitmask/gui/advanced_key_management.py index cbc8c3e3..95e5eedf 100644 --- a/src/leap/bitmask/gui/advanced_key_management.py +++ b/src/leap/bitmask/gui/advanced_key_management.py @@ -30,12 +30,14 @@ from ui_advanced_key_management import Ui_AdvancedKeyManagement logger = logging.getLogger(__name__) -class AdvancedKeyManagement(QtGui.QWidget): +class AdvancedKeyManagement(QtGui.QDialog): """ Advanced Key Management """ - def __init__(self, user, keymanager, soledad): + def __init__(self, parent, user, keymanager, soledad): """ + :param parent: parent object of AdvancedKeyManagement. + :parent type: QWidget :param user: the current logged in user. :type user: unicode :param keymanager: the existing keymanager instance @@ -43,7 +45,7 @@ class AdvancedKeyManagement(QtGui.QWidget): :param soledad: a loaded instance of Soledad :type soledad: Soledad """ - QtGui.QWidget.__init__(self) + QtGui.QDialog.__init__(self, parent) self.ui = Ui_AdvancedKeyManagement() self.ui.setupUi(self) |