diff --git a/ubiquity/frontend/kde_ui.py b/ubiquity/frontend/kde_ui.py index 5d5f84b72..515e379b9 100755 --- a/ubiquity/frontend/kde_ui.py +++ b/ubiquity/frontend/kde_ui.py @@ -335,9 +335,10 @@ class Wizard(BaseFrontend): elif self.oem_user_config: self.ui.setWindowTitle(self.get_string('oem_user_config_title')) self.ui.setWindowIcon(QtGui.QIcon.fromTheme("preferences-system")) - flags = self.ui.windowFlags() ^ QtCore.Qt.WindowMinMaxButtonsHint + flags = self.ui.windowFlags() | QtCore.Qt.CustomizeWindowHint + flags &= ~QtCore.Qt.WindowMinMaxButtonsHint if hasattr(QtCore.Qt, 'WindowCloseButtonHint'): - flags = flags ^ QtCore.Qt.WindowCloseButtonHint + flags &= ~QtCore.Qt.WindowCloseButtonHint self.ui.setWindowFlags(flags) self.ui.quit.hide() # TODO cjwatson 2010-04-07: provide alternative strings instead