# HG changeset patch # User Simon Heimberg <sim...@besonet.ch> # Date 1312373614 -7200 # Node ID ea60172149aa1bcd90f2c96af9fd29f5161a623d # Parent bc054acc8d07200c09076c168cfd86a2c57714a5 use openlocalurl from qtlib in hgqt dialogs
Replaced QDesktopServices.openUrl(QUrl.fromLocalFile(...)) with openlocalurl. Not sure if QDesktopServices.openUrl(QUrl(link)) in filedialogs and repowidget should be replaced too. diff -r bc054acc8d07 -r ea60172149aa tortoisehg/hgqt/bugreport.py --- a/tortoisehg/hgqt/bugreport.py Mit Aug 03 13:59:24 2011 +0200 +++ b/tortoisehg/hgqt/bugreport.py Mit Aug 03 14:13:34 2011 +0200 @@ -176,7 +176,7 @@ fake = FakeRepo() qtlib.editfiles(fake, [fname], lineno, parent=self) except Exception, e: - QDesktopServices.openUrl(QUrl.fromLocalFile(fname)) + qtlib.openlocalurl(fname) if ref.startswith('#fix:'): from tortoisehg.hgqt import settings errtext = ref[5:].split(' ')[0] diff -r bc054acc8d07 -r ea60172149aa tortoisehg/hgqt/manifestdialog.py --- a/tortoisehg/hgqt/manifestdialog.py Mit Aug 03 13:59:24 2011 +0200 +++ b/tortoisehg/hgqt/manifestdialog.py Mit Aug 03 14:13:34 2011 +0200 @@ -313,7 +313,7 @@ def explore(self): root = self._repo.wjoin(self.path) if os.path.isdir(root): - QDesktopServices.openUrl(QUrl.fromLocalFile(root)) + qtlib.openlocalurl(root) def terminal(self): root = self._repo.wjoin(self.path) diff -r bc054acc8d07 -r ea60172149aa tortoisehg/hgqt/reporegistry.py --- a/tortoisehg/hgqt/reporegistry.py Mit Aug 03 13:59:24 2011 +0200 +++ b/tortoisehg/hgqt/reporegistry.py Mit Aug 03 14:13:34 2011 +0200 @@ -484,7 +484,7 @@ def explore(self): root = self.selitem.internalPointer().rootpath() - QDesktopServices.openUrl(QUrl.fromLocalFile(root)) + qtlib.openlocalurl(root) def terminal(self): repoitem = self.selitem.internalPointer() diff -r bc054acc8d07 -r ea60172149aa tortoisehg/hgqt/revdetails.py --- a/tortoisehg/hgqt/revdetails.py Mit Aug 03 13:59:24 2011 +0200 +++ b/tortoisehg/hgqt/revdetails.py Mit Aug 03 14:13:34 2011 +0200 @@ -406,7 +406,7 @@ def explore(self): root = self.repo.wjoin(self.filelist.currentFile()) if os.path.isdir(root): - QDesktopServices.openUrl(QUrl.fromLocalFile(root)) + qtlib.openlocalurl(root) def terminal(self): root = self.repo.wjoin(self.filelist.currentFile()) diff -r bc054acc8d07 -r ea60172149aa tortoisehg/hgqt/sync.py --- a/tortoisehg/hgqt/sync.py Mit Aug 03 13:59:24 2011 +0200 +++ b/tortoisehg/hgqt/sync.py Mit Aug 03 14:13:34 2011 +0200 @@ -571,7 +571,7 @@ url = hglib.fromunicode(self.menuurl) u, h, p, folder, pw, scheme = parseurl(url) if scheme == 'local': - QDesktopServices.openUrl(QUrl.fromLocalFile(folder)) + qtlib.openlocalurl(folder) else: QDesktopServices.openUrl(QUrl(url)) diff -r bc054acc8d07 -r ea60172149aa tortoisehg/hgqt/workbench.py --- a/tortoisehg/hgqt/workbench.py Mit Aug 03 13:59:24 2011 +0200 +++ b/tortoisehg/hgqt/workbench.py Mit Aug 03 14:13:34 2011 +0200 @@ -882,7 +882,7 @@ def explore(self): w = self.repoTabsWidget.currentWidget() if w: - QDesktopServices.openUrl(QUrl.fromLocalFile(w.repo.root)) + qtlib.openlocalurl(w.repo.root) def terminal(self): w = self.repoTabsWidget.currentWidget() ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop