make cwd [PATCH]

Kuba Ober kuba at mareimbrium.org
Tue Jul 2 23:02:11 BST 2002


Should be self-explanatory. I think that's the only way in QT<300, and that's 
how it's done all around in make invocations there.

Cheers, Kuba Ober

--- kdevelop/kdevelop/ckdevelop.cpp     Tue Jun 25 10:59:59 2002
+++ kdevelop/kdevelop/ckdevelop.cpp     Tue Jul  2 17:41:35 2002
@@ -1025,11 +1025,11 @@
     cwd = QDir(cwd).absPath();
     // Invoke make with proper options
     debug("run: %s in: %s", make_cmd.data(), cwd.data());
-#if QT_VERSION < 300
-    // TODO: set working directory of process, how to do?
-#else
+  #if QT_VERSION < 300
+    QDir::setCurrent(cwd);
+  #else
     process.setWorkingDirectory(cwd);
-#endif
+  #endif
     process << make_cmd;
     QString makeOptions = prj->getMakeOptions();
     if (gotMakefile &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cwd.patch
Type: text/x-diff
Size: 583 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20020702/a2a1fd74/attachment.patch>


More information about the KDevelop mailing list