summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index 5a2d985..7c7ed46 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -33,8 +33,9 @@ fbgui::fbgui()
jsi, SLOT(attachToDOM()));
/* Init Download Manager */
downloadManager* dm = new downloadManager();
+ QObject::connect(dm, SIGNAL(downloadInfo(QString, double)), jsi, SLOT(downloadInfo(QString, double)));
QObject::connect(jsi, SIGNAL(requestFile(QString&)), dm, SLOT(downloadFile(QString&)));
- QObject::connect(dm, SIGNAL(updateProgress(int, double)), jsi, SLOT(updateProgressBar(int, double)));
+ QObject::connect(dm, SIGNAL(updateProgress(int, double, QString)), jsi, SLOT(updateProgressBar(int, double, QString)));
QObject::connect(dm, SIGNAL(downloadQueueEmpty()), jsi, SLOT(callbackOnDlQueueFinished()));
setAttribute(Qt::WA_QuitOnClose, true);
@@ -48,7 +49,7 @@ void fbgui::checkHost() const
{
QHostInfo hostInfo = QHostInfo::fromName(baseURL.host());
if (hostInfo.error() != QHostInfo::NoError){
- qDebug() << "Lookup of " << baseURL.host() << "failed." << "Exiting...";
+ qDebug() << "Lookup of " << baseURL.host() << "failed. Exiting...";
exit(EXIT_FAILURE);
}
}