From 6fde95f2921208361f3e5de1f419930bdefdc7fd Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 8 Mar 2011 20:09:24 +0100 Subject: host lookup, better MAC/IP info functions, IP one doesn't quite work yet --- src/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 44efa47..bd4951d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -82,17 +82,19 @@ int main(int argc, char *argv[]) baseURL = confFileSettings.value("default/url").toUrl(); else baseURL = DEFAULT_URL; + if (debug) qDebug() << "Base URL: " << baseURL.toString(); // Setting target downloads directory. if (clo.contains("downloadDir")){ - downloadPath = binPath + clo.value("downloadDir"); + downloadPath = clo.value("downloadDir"); } else if (confFileSettings.contains("default/downloadDirectory")){ - downloadPath = binPath + confFileSettings.value("default/downloadDirectory").toString(); + downloadPath = confFileSettings.value("default/downloadDirectory").toString(); } else - downloadPath = binPath + "/downloads"; - if (debug) qDebug() << "Downloads saved in: " << downloadPath; + downloadPath = "/downloads"; // Default download dir. + + if (debug) qDebug() << "Download directory: " << downloadPath; // Start fbgui. fbgui gui(&app); gui.setAttribute(Qt::WA_QuitOnClose, true); -- cgit v1.2.3-55-g7522