comparison ui/installwrapper.cpp @ 647:51830f4912c2

Minor style fix
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Jun 2014 10:56:31 +0200
parents a9a57dc1eb2f
children 216a65d7fc4b
comparison
equal deleted inserted replaced
646:a9a57dc1eb2f 647:51830f4912c2
159 bool use_sudo = is_admin(); 159 bool use_sudo = is_admin();
160 if (use_sudo) { 160 if (use_sudo) {
161 QStringList sudoPrograms; 161 QStringList sudoPrograms;
162 sudoPrograms << "gksudo" << "kdesudo" << "sudo"; 162 sudoPrograms << "gksudo" << "kdesudo" << "sudo";
163 QStringList sudoParams; 163 QStringList sudoParams;
164 sudoParams <<cinstProcInfo.absoluteFilePath() << parameters; 164 sudoParams << cinstProcInfo.absoluteFilePath() << parameters;
165 installerProcess.setArguments(sudoParams); 165 installerProcess.setArguments(sudoParams);
166 166
167 foreach (const QString &sProg, sudoPrograms) { 167 foreach (const QString &sProg, sudoPrograms) {
168 installerProcess.setProgram(sProg); 168 installerProcess.setProgram(sProg);
169 qDebug() << "Starting process " << sProg <<" params: " << sudoParams; 169 qDebug() << "Starting process " << sProg <<" params: " << sudoParams;

http://wald.intevation.org/projects/trustbridge/