diff -ru src/qgit.cpp.org src/qgit.cpp
old
|
new
|
|
16 | 16 | QCoreApplication::setOrganizationName(ORG_KEY); |
17 | 17 | QCoreApplication::setApplicationName(APP_KEY); |
18 | 18 | |
19 | | /* On Windows msysgit exec directory is set up |
20 | | * during installation so to always find git.exe |
21 | | * also if not in PATH |
22 | | */ |
23 | 19 | QSettings set; |
| 20 | if ( set.value(GIT_DIR_KEY).toString().isEmpty() ) { |
| 21 | // path to git is not set. Set it to our default. |
| 22 | set.setValue(GIT_DIR_KEY, "/opt/local/bin"); |
| 23 | } |
24 | 24 | GIT_DIR = set.value(GIT_DIR_KEY).toString(); |
25 | 25 | |
26 | 26 | initMimePix(); |