Ignore:
Timestamp:
Oct 28, 2013 8:50:13 AM (9 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
cb30a16
Parents:
47cbe52
Message:

Update the classic package command so that it does not hang the UI while running

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/life-preserver/lp-gui/LPBackend.cpp

    r6a2483b r0ecb8f7  
    331331 
    332332// ========================= 
    333 //             PRIVATE FUNCTIONS 
     333//             UTILITY FUNCTIONS 
    334334// ========================= 
    335335QStringList LPBackend::getCmdOutput(QString cmd){ 
     
    345345} 
    346346 
    347 int LPBackend::runCmd(QString cmd){ 
     347int LPBackend::runCmd(QString cmd, QStringList args){ 
    348348  QProcess *proc = new QProcess; 
    349349  proc->setProcessChannelMode(QProcess::MergedChannels); 
    350   proc->start(cmd); 
     350  if(args.isEmpty()){    
     351    proc->start(cmd); 
     352  }else{ 
     353    proc->start(cmd, args); 
     354  } 
    351355  while(!proc->waitForFinished(300)){ 
    352356    QCoreApplication::processEvents(); 
Note: See TracChangeset for help on using the changeset viewer.