summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeefcurtains <beefcurtains@users.noreply.github.com>2015-06-11 06:17:58 +0000
committerbeefcurtains <beefcurtains@users.noreply.github.com>2015-06-11 06:20:35 +0000
commitd313eff3cdd03033f10a3205026cf9fc589a89a9 (patch)
treecb659616cbaaac360c62cc9debf8730a107504eb
parentf663f2ceef38e2e1960ff2af80f8eda3f8214ccb (diff)
Automatically default to pass when it's available
-rw-r--r--mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index ec8d2d4c..d93c51ad 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -266,6 +266,9 @@ void MainWindow::config() {
QScopedPointer<Dialog> d(new Dialog(this));
d->setModal(true);
+ // Automatically default to pass if it's available
+ usePass = firstRun ? QFile(passExecutable).exists() : usePass;
+
d->setPassPath(passExecutable);
d->setGitPath(gitExecutable);
d->setGpgPath(gpgExecutable);