Made dialog raise to front.
This commit is contained in:
parent
14715ea7d6
commit
09d1487b3f
1 changed files with 3 additions and 2 deletions
5
main.py
5
main.py
|
|
@ -197,8 +197,7 @@ class MainWindow(QtGui.QMainWindow, CommandBase):
|
|||
|
||||
recent_projects = self.load_recent_projects()
|
||||
|
||||
existing_dialog = ExistingProjectDialog(recent_projects, self.load_project, parent=self)
|
||||
existing_dialog.show()
|
||||
self.existing_dialog = ExistingProjectDialog(recent_projects, self.load_project, parent=self)
|
||||
|
||||
drect = QtGui.QApplication.desktop().availableGeometry(self)
|
||||
center = drect.center()
|
||||
|
|
@ -1415,6 +1414,8 @@ class MainWindow(QtGui.QMainWindow, CommandBase):
|
|||
def show_and_raise(self):
|
||||
self.show()
|
||||
self.raise_()
|
||||
self.existing_dialog.show()
|
||||
self.existing_dialog.raise_()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue