diff options
author | beefcurtains <brouwer@annejan.com> | 2015-06-11 06:17:58 +0000 |
---|---|---|
committer | beefcurtains <beefcurtains@users.noreply.github.com> | 2015-06-11 06:20:35 +0000 |
commit | 6f3d2d31ca4ec67f6d32552f56d4bd08c632f0e3 (patch) | |
tree | cb659616cbaaac360c62cc9debf8730a107504eb /mainwindow.cpp | |
parent | 2af712e7c6e28dc227bff1a92a30a13ee27ea8b1 (diff) |
Automatically default to pass when it's available
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 3 |
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); |