summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2014-08-17 17:42:26 +0200
committerAnne Jan Brouwer <ajbrouwer@totalactivemedia.nl>2014-08-17 17:42:26 +0200
commit555fee26e81c46d4fcba7200069d3724f86b6aaa (patch)
treec4eb201aec39fd38a4e5a39e09690efc581f387b /main.cpp
parentfe33772c8c5a975ece8be74e6a1271fafd7b4801 (diff)
can't connect to QtPass for some reason.. added auto open via command (dmenu like)
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index bff217b6..009264d7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -4,7 +4,7 @@
int main(int argc, char *argv[])
{
- SingleApplication app(argc, argv, "QtPass");
+ SingleApplication app(argc, argv, "ijhackQtPass");
if (app.isRunning()) {
if (argc == 1 ) {
app.sendMessage("show");
@@ -12,7 +12,7 @@ int main(int argc, char *argv[])
QString text = "";
for (int i = 1; i < argc; ++i) {
text += argv[i];
- if (argc >= (i -1)) {
+ if (argc >= (i - 2)) {
text += " ";
}
app.sendMessage(text);