# HG changeset patch # User Simon Heimberg <sim...@besonet.ch> # Date 1313187462 -7200 # Node ID 1ff588f8f917ee30bf97025d1e9adb1e07b3395a # Parent 3398c460e5a7ce040537fbc57e5a967e3271775f 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 3398c460e5a7 -r 1ff588f8f917 tortoisehg/hgqt/bugreport.py --- a/tortoisehg/hgqt/bugreport.py Son Aug 14 00:20:55 2011 +0200 +++ b/tortoisehg/hgqt/bugreport.py Sam Aug 13 00:17:42 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 3398c460e5a7 -r 1ff588f8f917 tortoisehg/hgqt/manifestdialog.py --- a/tortoisehg/hgqt/manifestdialog.py Son Aug 14 00:20:55 2011 +0200 +++ b/tortoisehg/hgqt/manifestdialog.py Sam Aug 13 00:17:42 2011 +0200 @@ -317,7 +317,7 @@ def explore(self): root = self._repo.wjoin(hglib.fromunicode(self.path)) if os.path.isdir(root): - QDesktopServices.openUrl(QUrl.fromLocalFile(hglib.tounicode(root))) + qtlib.openlocalurl(root) def terminal(self): root = self._repo.wjoin(hglib.fromunicode(self.path)) diff -r 3398c460e5a7 -r 1ff588f8f917 tortoisehg/hgqt/reporegistry.py --- a/tortoisehg/hgqt/reporegistry.py Son Aug 14 00:20:55 2011 +0200 +++ b/tortoisehg/hgqt/reporegistry.py Sam Aug 13 00:17:42 2011 +0200 @@ -480,7 +480,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 3398c460e5a7 -r 1ff588f8f917 tortoisehg/hgqt/revdetails.py --- a/tortoisehg/hgqt/revdetails.py Son Aug 14 00:20:55 2011 +0200 +++ b/tortoisehg/hgqt/revdetails.py Sam Aug 13 00:17:42 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 3398c460e5a7 -r 1ff588f8f917 tortoisehg/hgqt/sync.py --- a/tortoisehg/hgqt/sync.py Son Aug 14 00:20:55 2011 +0200 +++ b/tortoisehg/hgqt/sync.py Sam Aug 13 00:17:42 2011 +0200 @@ -592,7 +592,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 3398c460e5a7 -r 1ff588f8f917 tortoisehg/hgqt/workbench.py --- a/tortoisehg/hgqt/workbench.py Son Aug 14 00:20:55 2011 +0200 +++ b/tortoisehg/hgqt/workbench.py Sam Aug 13 00:17:42 2011 +0200 @@ -884,7 +884,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() ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop