Raise ImageViewer to front on start.

Currently only works for main window, does not work for linked viewers.
This commit is contained in:
tonysyu
2013-06-26 11:00:24 -05:00
parent cae693cb69
commit ed7c75d4c6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -209,6 +209,8 @@ class Plugin(QtGui.QDialog):
def show(self, main_window=True):
"""Show plugin."""
super(Plugin, self).show()
self.activateWindow()
self.raise_()
# Emit signal with x-hint so new windows can be displayed w/o overlap.
size = self.frameGeometry()