mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdesudo: remove unused variable in main()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ac0c225fe8
commit
8ef70f7c75
1 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ int main(int argc, char **argv)
|
||||||
KApplication a;
|
KApplication a;
|
||||||
a.disableSessionManagement();
|
a.disableSessionManagement();
|
||||||
|
|
||||||
QString executable, arg, command, icon;
|
QString executable, icon;
|
||||||
QStringList executableList, commandlist;
|
QStringList executableList, commandlist;
|
||||||
KDesktopFile *desktopFile;
|
KDesktopFile *desktopFile;
|
||||||
|
|
||||||
|
@ -108,12 +108,12 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args->count() && executable.isEmpty()) {
|
if (args->count() && executable.isEmpty()) {
|
||||||
command = args->arg(0);
|
QString command = args->arg(0);
|
||||||
commandlist = command.split(" ");
|
commandlist = command.split(" ");
|
||||||
executable = commandlist[0];
|
executable = commandlist[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We have to make sure the executable is only the binary name */
|
/* Have to make sure the executable is only the binary name */
|
||||||
executableList = executable.split(" ");
|
executableList = executable.split(" ");
|
||||||
executable = executableList[0];
|
executable = executableList[0];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue