linux opens external links in browser now

This commit is contained in:
Jeena Paradies 2012-12-28 13:07:01 +01:00
parent 80728df815
commit 5b2157d881
2 changed files with 10 additions and 1 deletions

View file

@ -86,9 +86,16 @@ class Controller(QtCore.QObject):
return ""
@QtCore.pyqtSlot(str)
def openURL(self, url):
def openAuthorizationURL(self, url):
self.app.oauth_implementation.handle_authentication(str(url))
@QtCore.pyqtSlot(str)
def openURL(self, url):
QtGui.QDesktopServices.openUrl(QtCore.QUrl(url, QtCore.QUrl.TolerantMode))
def openQURL(self, url):
QtGui.QDesktopServices.openUrl(url)
@QtCore.pyqtSlot()
def loggedIn(self):
self.app.authentification_succeded()