qmake/main.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   147             }
   147             }
   148 
   148 
   149             //setup pwd properly
   149             //setup pwd properly
   150             debug_msg(1, "Resetting dir to: %s", oldpwd.toLatin1().constData());
   150             debug_msg(1, "Resetting dir to: %s", oldpwd.toLatin1().constData());
   151             qmake_setpwd(oldpwd); //reset the old pwd
   151             qmake_setpwd(oldpwd); //reset the old pwd
   152             int di = fn.lastIndexOf(Option::dir_sep);
   152             int di = fn.lastIndexOf(QDir::separator());
   153             if(di != -1) {
   153             if(di != -1) {
   154                 debug_msg(1, "Changing dir to: %s", fn.left(di).toLatin1().constData());
   154                 debug_msg(1, "Changing dir to: %s", fn.left(di).toLatin1().constData());
   155                 if(!qmake_setpwd(fn.left(di)))
   155                 if(!qmake_setpwd(fn.left(di)))
   156                     fprintf(stderr, "Cannot find directory: %s\n", fn.left(di).toLatin1().constData());
   156                     fprintf(stderr, "Cannot find directory: %s\n", fn.left(di).toLatin1().constData());
   157                 fn = fn.right(fn.length() - di - 1);
   157                 fn = fn.right(fn.length() - di - 1);