Browse Source

Fix checking for success of KProcess::start (use KProcess::waitForStarted instead of KProcess::error).

git-svn-id: file:///var/svn/tigccpp/trunk@1168 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
bca8f65e73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ktigcc/parsing.cpp

+ 2 - 2
ktigcc/parsing.cpp

@@ -52,7 +52,7 @@ SourceFileFunctions getCFunctions(const QString &text)
             "__ATTR_LIB_CALLBACK_C__,__ATTR_LIB_CALLBACK_ASM__"
            <<"parser_temp_source.c";
     process.start();
-    if (process.error() == QProcess::FailedToStart) {
+    if (!process.waitForStarted()) {
       delete_temp_file("parser_temp_source.c");
       KMessageBox::error(0,"Could not run ctags.\nThis feature requires "
                            "Exuberant Ctags, which can be obtained from: "
@@ -183,7 +183,7 @@ CompletionInfo parseFileCompletion(const QString &fileText,
              "__ATTR_LIB_CALLBACK_C__,__ATTR_LIB_CALLBACK_ASM__"
            <<"parser_temp_source.c";
     process.start();
-    if (process.error() == QProcess::FailedToStart) {
+    if (!process.waitForStarted()) {
       delete_temp_file("parser_temp_source.c");
       KMessageBox::error(0,"Could not run ctags.\nThis feature requires "
                            "Exuberant Ctags, which can be obtained from: "