Changeset ae9944a


Ignore:
Timestamp:
03/05/14 12:30:14 (10 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
1c2cc9f, caf88c8
Parents:
8d73b92
Message:

Add a quick check to the system manager to make sure the diagnostic generation script is executable, and make it so if not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-sysmanager/pbsystemtab.cpp

    re62a5d2 rae9944a  
    118118        //qDebug() << "CMD: " << prog+" "+args.join(" "); 
    119119        connect( SheetGenScript, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(finishedSheet()) ); 
    120                  
     120        //Make sure the diagnostic generation script is executable 
     121        QFileInfo info(prog); 
     122        if(!info.isExecutable()){ 
     123          QFile::setPermissions(prog, info.permissions() | QFile::ExeOther); //executable by anyone 
     124        } 
    121125        SheetGenScript->start(prog, args); 
    122126} 
Note: See TracChangeset for help on using the changeset viewer.