Don't steal focus if nothing to show.

Sat, 02 Jan 2016 16:28:16 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 02 Jan 2016 16:28:16 +0100
changeset 4638
38fb19230a17
parent 4636
7e57528c43a0
child 4640
0b502e1bc0b9

Don't steal focus if nothing to show.

Debugger/DebugUI.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugUI.py	Fri Jan 01 15:53:49 2016 +0100
+++ b/Debugger/DebugUI.py	Sat Jan 02 16:28:16 2016 +0100
@@ -1102,7 +1102,6 @@
         @param stackTrace list of stack entries (list of string)
         """
         self.ui.raise_()
-        self.ui.activateWindow()
         QApplication.processEvents()
         if exceptionType is None:
             E5MessageBox.critical(
@@ -1132,6 +1131,7 @@
                     self.viewmanager.setFileLine(
                         stackTrace[0][0], stackTrace[0][1], True)
             if res != E5MessageBox.No:
+                self.ui.activateWindow()
                 if Preferences.getDebugger("BreakAlways"):
                     res = E5MessageBox.Yes
                 else:

eric ide

mercurial