comparison common.cpp @ 213:90e70a9024f3

* Make findInPath return empty string if not found -- previous hopelessly fragile behaviour failed in situations where it was called with an absolute path
author Chris Cannam
date Wed, 05 Jan 2011 16:08:37 +0000
parents 1a3af8617ea4
children 478d0222e93d
comparison
equal deleted inserted replaced
212:4c5993d860f3 213:90e70a9024f3
95 if (!name.endsWith(".exe")) { 95 if (!name.endsWith(".exe")) {
96 return findInPath(name + ".exe", installPath, executableRequired); 96 return findInPath(name + ".exe", installPath, executableRequired);
97 } 97 }
98 } 98 }
99 #endif 99 #endif
100 return name; 100 if (found) {
101 return name;
102 } else {
103 return "";
104 }
101 } 105 }
102 106
103 #ifdef Q_OS_WIN32 107 #ifdef Q_OS_WIN32
104 QString getUserRealName() 108 QString getUserRealName()
105 { 109 {