58 err = self.__browser.addConnection(url.scheme(), url.path(), |
58 err = self.__browser.addConnection(url.scheme(), url.path(), |
59 url.userName(), url.password(), |
59 url.userName(), url.password(), |
60 url.host(), url.port(-1)) |
60 url.host(), url.port(-1)) |
61 if err.type() != QSqlError.NoError: |
61 if err.type() != QSqlError.NoError: |
62 self.__warnings.append( |
62 self.__warnings.append( |
63 self.trUtf8("Unable to open connection: %s" % err.text())) |
63 self.trUtf8("Unable to open connection: {0}".format(err.text()))) |
64 |
64 |
65 QTimer.singleShot(0, self.__uiStartUp) |
65 QTimer.singleShot(0, self.__uiStartUp) |
66 |
66 |
67 def __uiStartUp(self): |
67 def __uiStartUp(self): |
68 """ |
68 """ |