Skip to content

Commit

Permalink
Fix bug that prints "Unknown error"
Browse files Browse the repository at this point in the history
Then I try to start qtpass I get the message in the terminal "Unknown error" and the program closes, but this patch fixes that problem.
A workaround for this bug is to add a argument to the execution of qtpass, like "qtpass test". You can still use arguments to search in qtpass then starting the program.
  • Loading branch information
dvarum12 committed Nov 10, 2015
1 parent 3e62240 commit 3fc1dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ int main(int argc, char *argv[])
//qDebug() << name;
SingleApplication app(argc, argv, name + "QtPass");
if (app.isRunning()) {
app.sendMessage(text);
if (text.length() > 0) {
app.sendMessage(text);
}
return 0;
}
#else
Expand Down

0 comments on commit 3fc1dc7

Please sign in to comment.