Commits

Yuya Nishihara  committed 32dcad9

qtapp: assign server name to variable for later use

  • Participants
  • Parent commits d772a6f
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtapp.py

         data = root
     else:
         data = '[echo]'
+    servername = QApplication.applicationName() + '-' + util.getuser()
     socket = QLocalSocket()
-    socket.connectToServer(QApplication.applicationName() + '-' + util.getuser(),
-        QIODevice.ReadWrite)
+    socket.connectToServer(servername, QIODevice.ReadWrite)
     if socket.waitForConnected(10000):
         # Momentarily let any process set the foreground window
         # The server process with revoke this permission as soon as it gets