summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DownloadManager.cpp6
-rw-r--r--src/fbbrowser.cpp2
-rw-r--r--src/fbgui.cpp2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/DownloadManager.cpp b/src/DownloadManager.cpp
index 146127d..4c94341 100644
--- a/src/DownloadManager.cpp
+++ b/src/DownloadManager.cpp
@@ -15,7 +15,7 @@ void DownloadManager::get(QString& filename)
}
// No running downloads: enqueue and start next download.
dlQ.enqueue(u);
- qDebug() << "Enqueueing :" << u.toString();
+ qDebug() << "Enqueueing:" << u.toString() << endl;
startNextDownload();
}
// ----------------------------------------------------------------------------------------
@@ -33,7 +33,7 @@ void DownloadManager::startNextDownload()
}
// Dequeue next URL to download.
QUrl url = dlQ.dequeue();
- qDebug() << "Dequeueing..." << url.toString();
+ //qDebug() << "Dequeueing..." << url.toString();
// Extract the filename from the URL
QString path = url.path();
QString basename = QFileInfo(path).fileName();
@@ -102,6 +102,7 @@ void DownloadManager::downloadFinished()
// Constructor.
DownloadManager::DownloadManager(const QUrl& baseUrl)
{
+ qDebug() << endl << "Initialising Download Manager...";
this->qnam = new QNetworkAccessManager();
this->baseUrl = baseUrl;
dip = false;
@@ -109,4 +110,5 @@ DownloadManager::DownloadManager(const QUrl& baseUrl)
// Destructor.
DownloadManager::~DownloadManager()
{
+ delete[] this->qnam;
}
diff --git a/src/fbbrowser.cpp b/src/fbbrowser.cpp
index 009aae7..a75c209 100644
--- a/src/fbbrowser.cpp
+++ b/src/fbbrowser.cpp
@@ -23,7 +23,7 @@ fbbrowser::fbbrowser(const QUrl & url)
// signal, haven't found a better way yet ...
if(reply->error() == QNetworkReply::NoError)
{
- qDebug() << "No error, loading given URL...";
+ //qDebug() << "No error, loading given URL...";
view->load(url);
}
else
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index 103ad44..05a3cd2 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
// Declare the long options in the const struct, these have two - followed by a string found in longOpts[].
// Same as: ./fbbrowser --help
// Note: I included 'qws' here to not have errors, when setting fbbrowser to be the server app aswell.
- static const char *optString = "hqws";
+ static const char *optString = "hqwsdiplay";
static const struct option longOpts[] =
{
// If an option requires parameters, write this number instead of no_argument.