summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2015-06-14 18:56:35 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2015-06-14 19:01:34 +0200
commit821b9402a55a73efd253cd48312fb3aaea6386d5 (patch)
tree85c4e8b3e44bdb1cf57e5b59f898b8ea3982bde7
parented61b1416075b3509b7f1672338182dc21d79d60 (diff)
Fix behaviour if e.g. git path is empty.
-rw-r--r--mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 120ad5c3..dbe117bf 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -456,6 +456,10 @@ void MainWindow::executePass(QString args, QString input) {
* @param args
*/
void MainWindow::executeWrapper(QString app, QString args, QString input) {
+ // Happens a lot if e.g. git binary is not set.
+ // This will result in bogus "QProcess::FailedToStart" messages,
+ // also hiding legitimate errors from the gpg commands.
+ if (app.isEmpty()) return;
// Convert to absolute path, just in case
app = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(app);
if (wrapperRunning) {