diff options
author | Reimar Döffinger <brouwer@annejan.com> | 2015-06-14 18:56:35 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2015-06-14 19:01:34 +0200 |
commit | efc7399ec0a4c4fdd068277ebfcf5c8889c8c1e7 (patch) | |
tree | 85c4e8b3e44bdb1cf57e5b59f898b8ea3982bde7 /mainwindow.cpp | |
parent | 89fa1c7918c806a53fbd7a1f13ab5176bc3f6533 (diff) |
Fix behaviour if e.g. git path is empty.
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 4 |
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) { |