diff options
author | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-08-17 17:42:26 +0200 |
---|---|---|
committer | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-08-17 17:42:26 +0200 |
commit | dc09b8bd69b2f8ff867ae01c7b50f03e94bd1c0a (patch) | |
tree | c4eb201aec39fd38a4e5a39e09690efc581f387b /main.cpp | |
parent | ee4bb8d362c8c176fa8a484717c53b484198b7ac (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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |