0000952: Download manager
This commit is contained in:
@@ -64,6 +64,8 @@
|
||||
#include "MainWindow.h"
|
||||
#include "Application.h"
|
||||
#include "Assistant.h"
|
||||
#include "DownloadDialog.h"
|
||||
#include "DownloadManager.h"
|
||||
#include "WaitCursor.h"
|
||||
|
||||
#include "Action.h"
|
||||
@@ -1543,6 +1545,12 @@ void MainWindow::loadUrls(App::Document* doc, const QList<QUrl>& url)
|
||||
(const char*)info.absoluteFilePath().toUtf8());
|
||||
}
|
||||
}
|
||||
else if (it->scheme().toLower() == QLatin1String("http")) {
|
||||
Gui::Dialog::DownloadManager::getInstance()->download(*it);
|
||||
}
|
||||
else if (it->scheme().toLower() == QLatin1String("ftp")) {
|
||||
Gui::Dialog::DownloadManager::getInstance()->download(*it);
|
||||
}
|
||||
}
|
||||
|
||||
const char *docName = doc ? doc->getName() : "Unnamed";
|
||||
|
||||
Reference in New Issue
Block a user