Changeset 214
- Timestamp:
- Oct 7, 2009, 8:33:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/corelib/io/qprocess_os2.cpp ¶
r213 r214 822 822 QStringList knownExts; 823 823 knownExts << "exe" << "cmd" << "bat"; // in order of CMD.EXE's precedence 824 QByteArray path = QFile::encodeName(programInfo.path()); 824 QByteArray path = 825 QFile::encodeName(QDir::toNativeSeparators(programInfo.path())); 826 if (path == ".") 827 path.clear(); 825 828 // run through all known exe extensions (+ no extension case) 826 829 for (int i = 0; i <= knownExts.size(); ++i) { … … 829 832 // no extension case, only if a known extension is already there 830 833 if (knownExts.contains(programInfo.suffix(), Qt::CaseInsensitive)) 831 name = programName;834 name = QFile::encodeName(programInfo.fileName()); 832 835 else 833 836 continue; 834 837 } else { 835 name = QFile::encodeName(program + QLatin1String(".") + knownExts[i-1]); 838 name = QFile::encodeName(programInfo.fileName() + 839 QLatin1String(".") + knownExts[i-1]); 836 840 } 837 841 if (!path.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.