diff options
author | beefcurtains <beefcurtains@users.noreply.github.com> | 2015-06-11 06:17:58 +0000 |
---|---|---|
committer | beefcurtains <beefcurtains@users.noreply.github.com> | 2015-06-11 06:20:35 +0000 |
commit | d313eff3cdd03033f10a3205026cf9fc589a89a9 (patch) | |
tree | cb659616cbaaac360c62cc9debf8730a107504eb | |
parent | f663f2ceef38e2e1960ff2af80f8eda3f8214ccb (diff) |
Automatically default to pass when it's available
-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); |