Don't steal focus if nothing to show. 6_1_x

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

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 02 Jan 2016 16:28:16 +0100
branch
6_1_x
changeset 4639
14cc2a6e004b
parent 4637
0b6d7412a2c4
child 4641
9fcce00f9714

Don't steal focus if nothing to show.
(grafted from 38fb19230a17240bae9d4fb639cc416acb456e26)

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