summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-06-11 15:43:00 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2015-06-11 15:43:00 +0200
commit5ca6c7e7d0ecb13da3aa59b920e39e72ee1c68f5 (patch)
treeabe7a779eb94775ede2751f5dc7ffa8b089fe36f /mainwindow.cpp
parentf69d65dfd3beb9acc936ea5d0c420a11ed0b9227 (diff)
parent6f3d2d31ca4ec67f6d32552f56d4bd08c632f0e3 (diff)
Merge pull request #51 from beefcurtains/develop
Minor thingies
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 45cab12f..9785be45 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -13,6 +13,8 @@
#include <QQueue>
#include <QCloseEvent>
#ifdef Q_OS_WIN
+#define WIN32_LEAN_AND_MEAN/*_KILLING_MACHINE*/
+#define WIN32_EXTRA_LEAN
#include <windows.h>
#include <winnetwk.h>
#undef DELETE
@@ -264,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);