diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-12 11:11:06 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-12 11:11:06 +0200 |
commit | 63cf466716c077e657610c29820e1bbcd0fde186 (patch) | |
tree | 13e893577dcc6bdc5959acfb8e9d6ad7dedfe7c4 | |
parent | e4d6c169aceee45b38852e3c4c554e839145bdb4 (diff) |
minor sanity checking
-rw-r--r-- | mainwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index dd06ba86..6eecc1f2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -454,6 +454,10 @@ void MainWindow::executePass(QString args, QString input) { * @param args */ void MainWindow::executeWrapper(QString app, QString args, QString input) { + if (app.isEmpty()) { + qDebug() << "Trying to execute nothing.."; + return; + } if (wrapperRunning) { execQueueItem item; item.app = app; @@ -1048,7 +1052,7 @@ void MainWindow::on_usersButton_clicked() tr("None of the selected keys have a secret key available.\n" "You will not be able to decrypt any newly added passwords!")); } - if (!useWebDav){ + if (!useWebDav && !gitExecutable.isEmpty()){ if (addFile) { executeWrapper(gitExecutable, "add \"" + gpgIdFile + '"'); } |