Changeset 50

Show
Ignore:
Timestamp:
01/10/06 15:53:12 (3 years ago)
Author:
edmanm
Message:

Minor cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/control/torprocess.cpp

    r49 r50  
    4141TorProcess::start(QFileInfo app, QStringList args, QString *errmsg) 
    4242{ 
     43  QString path = app.absoluteFilePath(); 
     44   
    4345  /* If the path doesn't point to an executable, then bail */ 
    4446  if (!app.isExecutable()) { 
    4547    if (errmsg) { 
    4648      *errmsg =  
    47         QString("\"%1\" is not an executable.").arg(app.absoluteFilePath()); 
     49        QString("\"%1\" is not an executable.").arg(path); 
    4850    } 
    4951    return false; 
     
    5153   
    5254  /* Attempt to start Tor */ 
    53   QProcess::start(app.absoluteFilePath(), args); 
     55  QProcess::start(path, args); 
    5456   
    5557  /* Wait for Tor to start. If it fails to start, report the error message and 
     
    5860    if (errmsg) { 
    5961      *errmsg =  
    60         QString("\"%1\" failed to start. [%2]").arg(app.absoluteFilePath()).arg(errorString()); 
     62        QString("\"%1\" failed to start. [%2]").arg(path).arg(errorString()); 
    6163    } 
    6264    return false;