[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [baloo] src/tools/balooctl: BalooCtl: Return after commands
From: Vishesh Handa <me () vhanda ! in>
Date: 2015-11-27 0:27:39
Message-ID: E1a26t1-0007yI-Uy () scm ! kde ! org
[Download RAW message or body]
Git commit a07dcea1fd3534e28e7288a1ccc09af8a74a7f61 by Vishesh Handa.
Committed on 27/11/2015 at 00:09.
Pushed by vhanda into branch 'master'.
BalooCtl: Return after commands
If we didn't return then we would show the help menu, which is
confusing.
M +7 -1 src/tools/balooctl/main.cpp
http://commits.kde.org/baloo/a07dcea1fd3534e28e7288a1ccc09af8a74a7f61
diff --git a/src/tools/balooctl/main.cpp b/src/tools/balooctl/main.cpp
index 0b05044..2a6b175 100644
--- a/src/tools/balooctl/main.cpp
+++ b/src/tools/balooctl/main.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2012-2013 Vishesh Handa <me@vhanda.in>
+ Copyright (c) 2012-2015 Vishesh Handa <me@vhanda.in>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -162,6 +162,8 @@ int main(int argc, char* argv[])
mainInterface.quit();
if (shouldStart)
start();
+
+ return 0;
}
if (command == QStringLiteral("suspend")) {
@@ -217,6 +219,8 @@ int main(int argc, char* argv[])
}
tr.commit();
out << "File(s) indexed\n";
+
+ return 0;
}
if (command == QStringLiteral("clear")) {
@@ -250,6 +254,8 @@ int main(int argc, char* argv[])
}
tr.commit();
out << "File(s) cleared\n";
+
+ return 0;
}
if (command == QStringLiteral("indexSize")) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic