1. Yuya Nishihara
  2. kdiff3

Commits

joac...@c8aa9fed-2811-0410-8543-893ada326672  committed 71d8713

Use KProcess::startDetached instead of execute to avoid blocking

  • Participants
  • Parent commits c4f6e17
  • Branches default

Comments (0)

Files changed (1)

File kdiff3plugin-QT4/kdiff3plugin.cpp

View file
       QStringList args;
       args << s_pHistory->front();
       args << m_list.front();
-      KProcess::execute("kdiff3", args);
+      KProcess::startDetached("kdiff3", args);
    }
 }
 
       QStringList args;
       args << pAction->text();
       args << m_list.front();
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
       QStringList args;
       args << m_list.front();
       args << m_list.back();
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
       args << m_list[0];
       args << m_list[1];
       args << m_list[2];
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
       args << s_pHistory->front();
       args << m_list.front();
       args << ( "-o" + m_list.front() );
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }
 
       args << (*s_pHistory)[0];
       args << m_list.front();
       args << ("-o" + m_list.front());
-      KProcess::execute ("kdiff3", args);
+      KProcess::startDetached ("kdiff3", args);
    }
 }