mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fixed showing download item not in download manager when downloading
page + added TODO list
This commit is contained in:
parent
4b036cbd54
commit
d097a06b2e
14
TODO
Normal file
14
TODO
Normal file
@ -0,0 +1,14 @@
|
||||
#######################
|
||||
## TODO List ##
|
||||
#######################
|
||||
There are some features, which I plan to implement
|
||||
in future.
|
||||
|
||||
Note: They are not sorted by priority.
|
||||
|
||||
1. OpenSearch support
|
||||
2. Import / Export Bookmarks
|
||||
3. Speed Dial
|
||||
4. FTP Protocol support
|
||||
5. Zoom Widget in statusbar
|
||||
6. Save more than one account for site + input completer
|
Binary file not shown.
@ -40,7 +40,7 @@ DownloadFileHelper::DownloadFileHelper(const QString &lastDownloadPath, const QS
|
||||
//// Getting where to download requested file
|
||||
//// in 3 functions, as we are using non blocking
|
||||
//// dialogs ( this is important to make secure downloading
|
||||
//// on windows working properly )
|
||||
//// on Windows working properly )
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
void DownloadFileHelper::handleUnsupportedContent(QNetworkReply* reply, bool askWhatToDo)
|
||||
@ -51,7 +51,7 @@ void DownloadFileHelper::handleUnsupportedContent(QNetworkReply* reply, bool ask
|
||||
m_reply = reply;
|
||||
|
||||
QFileInfo info(reply->url().toString());
|
||||
QTemporaryFile tempFile("XXXXXX."+info.suffix());
|
||||
QTemporaryFile tempFile("XXXXXX." + info.suffix());
|
||||
tempFile.open();
|
||||
QFileInfo tempInfo(tempFile.fileName());
|
||||
m_fileIcon = m_iconProvider->icon(tempInfo).pixmap(30,30);
|
||||
@ -124,6 +124,7 @@ void DownloadFileHelper::fileNameChoosed(const QString &name, bool fileNameAutoG
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
int pos = m_userFileName.lastIndexOf("/");
|
||||
if (pos != -1) {
|
||||
int size = m_userFileName.size();
|
||||
|
@ -156,12 +156,15 @@ void DownloadManager::download(const QNetworkRequest &request, bool askWhatToDo)
|
||||
|
||||
void DownloadManager::handleUnsupportedContent(QNetworkReply* reply, bool askWhatToDo)
|
||||
{
|
||||
if (reply->url().scheme() == "qupzilla")
|
||||
return;
|
||||
|
||||
DownloadFileHelper* h = new DownloadFileHelper(m_lastDownloadPath, m_downloadPath, m_useNativeDialog);
|
||||
connect(h, SIGNAL(itemCreated(QListWidgetItem*,DownloadItem*)), this, SLOT(itemCreated(QListWidgetItem*,DownloadItem*)));
|
||||
|
||||
h->setDownloadManager(this);
|
||||
h->setListWidget(ui->list);
|
||||
h->handleUnsupportedContent(reply, askWhatToDo);
|
||||
|
||||
connect(h, SIGNAL(itemCreated(QListWidgetItem*,DownloadItem*)), this, SLOT(itemCreated(QListWidgetItem*,DownloadItem*)));
|
||||
}
|
||||
|
||||
void DownloadManager::itemCreated(QListWidgetItem *item, DownloadItem *downItem)
|
||||
|
Loading…
Reference in New Issue
Block a user