summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-08 13:17:12 +0100
committerJonathan Bauer2011-03-08 13:17:12 +0100
commit137022b7f0e2f38f3f517fd34954b3518114c920 (patch)
treeeb7717e8b42f0c2ac618be6eb51fdb7320227639 /src/fbgui.cpp
parentfirst fixes (diff)
downloadfbgui-137022b7f0e2f38f3f517fd34954b3518114c920.tar.gz
fbgui-137022b7f0e2f38f3f517fd34954b3518114c920.tar.xz
fbgui-137022b7f0e2f38f3f517fd34954b3518114c920.zip
first downloadDir fix
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index f3fd320..6673d22 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -8,13 +8,15 @@
#include <QtWebKit>
#include <QApplication>
-
+// Note: Absolute paths.
+QString binPath(QApplication::applicationDirPath());
+QString downloadPath(binPath + "/downloads");
QUrl baseURL(DEFAULT_URL);
-QDir downloadDirectory("./downloads/");
bool debug = false;
fbgui::fbgui(QApplication *parent)
{
+ qDebug() << "Application dir path: " << QApplication::applicationDirPath();
/* Browser init. */
QWebView* webView = new QWebView(this);
webView->load(baseURL);