diff common.cpp @ 178:1a3af8617ea4

* basic external editor selection (for hgignore)
author Chris Cannam
date Thu, 16 Dec 2010 22:11:38 +0000
parents b6dd1ee0e486
children 90e70a9024f3
line wrap: on
line diff
--- a/common.cpp	Thu Dec 16 20:23:43 2010 +0000
+++ b/common.cpp	Thu Dec 16 22:11:38 2010 +0000
@@ -48,9 +48,9 @@
     if (name != "") {
         if (name[0] != '/'
 #ifdef Q_OS_WIN32
-			&& (QRegExp("^[a-zA-Z]:").indexIn(name) != 0)
+            && (QRegExp("^\\w:").indexIn(name) != 0)
 #endif
-			) {
+            ) {
 #ifdef Q_OS_WIN32
             QChar pathSep = ';';
 #else
@@ -68,7 +68,7 @@
                 path = installPath + pathSep + path;
             }
 #ifndef Q_OS_WIN32
-			//!!!
+            //!!!
             path = path + ":/usr/local/bin";
             DEBUG << "... adding /usr/local/bin just in case (fix and add settings dlg please)"
                     << endl;