Ticket #14602: q3process_unix.cpp.diff
File q3process_unix.cpp.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago) |
---|
-
src/qt3support/other/q3process_unix.cpp
old new 761 761 #endif 762 762 i++; 763 763 } 764 #ifdef Q_ OS_MACX764 #ifdef Q_WS_MACX 765 765 if(i) { 766 766 Q3CString arg_bundle = arglistQ[0]; 767 767 QFileInfo fi(QString::fromUtf8(arg_bundle.constData())); … … 858 858 QStringList pathList = QStringList::split( QLatin1Char(':'), QString::fromLocal8Bit(getenv( "PATH" )) ); 859 859 for (QStringList::Iterator it = pathList.begin(); it != pathList.end(); ++it ) { 860 860 QString dir = *it; 861 #if defined(Q_ OS_MACX) //look in a bundle861 #if defined(Q_WS_MACX) //look in a bundle 862 862 if(!QFile::exists(dir + QLatin1Char('/') + command) && QFile::exists(dir + QLatin1Char('/') + command + QLatin1String(".app"))) 863 863 dir += QLatin1Char('/') + command + QLatin1String(".app/Contents/MacOS"); 864 864 #endif … … 868 868 QFileInfo fileInfo( dir + "/" + command ); 869 869 #endif 870 870 if ( fileInfo.isExecutable() ) { 871 #if defined(Q_ OS_MACX)871 #if defined(Q_WS_MACX) 872 872 arglistQ[0] = fileInfo.absFilePath().local8Bit(); 873 873 #else 874 874 arglistQ[0] = fileInfo.filePath().local8Bit();