# HG changeset patch
# User Simon Heimberg <sim...@besonet.ch>
# Date 1311390772 -7200
# Node ID 59acf8c1b95d9763e84c2735b7e72f553b496126
# Parent  eb0fa9dd3fcfe28b7e299f0b27d706cf0135e022
reporegistry: allow to explore a repo located on a network share

diff -r eb0fa9dd3fcf -r 59acf8c1b95d tortoisehg/hgqt/reporegistry.py
--- a/tortoisehg/hgqt/reporegistry.py   Sam Jul 23 05:12:52 2011 +0200
+++ b/tortoisehg/hgqt/reporegistry.py   Sam Jul 23 05:12:52 2011 +0200
@@ -466,7 +466,12 @@
 
     def explore(self):
         root = self.selitem.internalPointer().rootpath()
-        QDesktopServices.openUrl(QUrl.fromLocalFile(root))
+        if os.name == 'nt' and root.startswidth('\\\\'):
+            # because of qt bug 13359, see 
http://bugreports.qt.nokia.com/browse/QTBUG-13359
+            url = QUrl().setUrl(QDir.toNativeSeparators(root))
+        else
+            url = QUrl.fromLocalFile(root)
+        QDesktopServices.openUrl(url)
 
     def terminal(self):
         repoitem = self.selitem.internalPointer()

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to