summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-08 13:54:50 +0100
committerJonathan Bauer2011-03-08 13:54:50 +0100
commit0f3d4931cf763d507d8df7f1fa60ad023d883a33 (patch)
treec9dbce7a79b1186b8bd034165fd8345aeb179eb9 /src/main.cpp
parentsysInfoTest.html as reference on how to call the function properly (diff)
downloadfbgui-0f3d4931cf763d507d8df7f1fa60ad023d883a33.tar.gz
fbgui-0f3d4931cf763d507d8df7f1fa60ad023d883a33.tar.xz
fbgui-0f3d4931cf763d507d8df7f1fa60ad023d883a33.zip
binPath init fix
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8686407..92e8819 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -26,6 +26,7 @@ int main(int argc, char *argv[])
app.setOrganizationName("team_projekt_2011");
app.setApplicationName("prebootGUI");
app.setObjectName("test");
+ binPath = QApplication::applicationDirPath();
// Translator, for later (maybe).
QTranslator translator;
@@ -83,7 +84,7 @@ int main(int argc, char *argv[])
else
baseURL = DEFAULT_URL;
- // Setting downloads target directory.
+ // Setting target downloads directory.
if (clo.contains("downloadDir")){
downloadPath = binPath + clo.value("downloadDir");
if (debug) qDebug() << "clo set downloadDir to: " << binPath + clo.value("downloadDir");