Debugger/DebugServer.py

changeset 539
87f9bce38a44
parent 501
5c615a85241a
child 541
00e1a5d060c5
diff -r 7f1a56e80124 -r 87f9bce38a44 Debugger/DebugServer.py
--- a/Debugger/DebugServer.py	Tue Aug 31 12:36:10 2010 +0200
+++ b/Debugger/DebugServer.py	Tue Aug 31 13:23:27 2010 +0200
@@ -14,6 +14,7 @@
 from PyQt4.QtNetwork import QTcpServer, QHostAddress, QHostInfo
 
 from E5Gui.E5Application import e5App
+from E5Gui import E5MessageBox
 
 from .BreakPointModel import BreakPointModel
 from .WatchPointModel import WatchPointModel
@@ -566,7 +567,7 @@
         peerAddress = sock.peerAddress().toString()
         if peerAddress not in Preferences.getDebugger("AllowedHosts"):
             # the peer is not allowed to connect
-            res = QMessageBox.warning(None,
+            res = E5MessageBox.warning(None,
                 self.trUtf8("Connection from illegal host"),
                 self.trUtf8("""<p>A connection was attempted by the"""
                     """ illegal host <b>{0}</b>. Accept this connection?</p>""")\
@@ -1276,4 +1277,4 @@
         
         @return flag indicating a connection (boolean)
         """
-        return self.debuggerInterface and self.debuggerInterface.isConnected()
+        return self.debuggerInterface and self.debuggerInterface.isConnected()
\ No newline at end of file

eric ide

mercurial