From 0f3d4931cf763d507d8df7f1fa60ad023d883a33 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 8 Mar 2011 13:54:50 +0100 Subject: binPath init fix --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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"); -- cgit v1.2.3-55-g7522