diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-29 10:08:38 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-29 10:08:38 +0000 |
commit | f2b438647d28fb2cf21f12dd31139295ccafc089 (patch) | |
tree | c66d29d0b0ae47f4c8017cf33a4c34f69f40bc10 | |
parent | dc46a6890470f4cf0a4191af11fa40e0d0a8aada (diff) | |
download | tdesudo-f2b438647d28fb2cf21f12dd31139295ccafc089.tar.gz tdesudo-f2b438647d28fb2cf21f12dd31139295ccafc089.zip |
Fix kdesudo launch
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesudo@1250078 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | kdesudo/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kdesudo/main.cpp b/kdesudo/main.cpp index b150f16..f5af9ae 100644 --- a/kdesudo/main.cpp +++ b/kdesudo/main.cpp @@ -95,7 +95,8 @@ int main(int argc, char **argv) executable = commandlist[0]; } } - else { + + if ((!args->isSet("c")) && (!args->count())) { kdError() << I18N_NOOP("You must provide the name of the executable you want to run as an argument to kdesudo") << endl; exit(1); } |