-rw-r--r-- | qmake/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qmake/main.cpp b/qmake/main.cpp index eed1697..cc2d08a 100644 --- a/qmake/main.cpp +++ b/qmake/main.cpp | |||
@@ -60,8 +60,13 @@ int main(int argc, char **argv) | |||
60 | QDir sunworkshop42workaround = QDir::current(); | 60 | QDir sunworkshop42workaround = QDir::current(); |
61 | QString oldpwd = sunworkshop42workaround.currentDirPath(); | 61 | QString oldpwd = sunworkshop42workaround.currentDirPath(); |
62 | Option::output_dir = oldpwd; //for now this is the output dir | 62 | Option::output_dir = oldpwd; //for now this is the output dir |
63 | if(Option::output_dir.right(1) != QString(QChar(QDir::separator()))) | 63 | #ifdef Q_WS_WIN |
64 | Option::output_dir += QDir::separator(); | 64 | if ( !(Option::output_dir.length() == 3 && Option::output_dir[0].isLetter() && Option::output_dir.endsWith(":/") ) ) |
65 | #endif | ||
66 | { | ||
67 | if(Option::output_dir.right(1) != QString(QChar(QDir::separator()))) | ||
68 | Option::output_dir += QDir::separator(); | ||
69 | } | ||
65 | QMakeProject proj; | 70 | QMakeProject proj; |
66 | int exit_val = 0; | 71 | int exit_val = 0; |
67 | QStringList files; | 72 | QStringList files; |