summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-17 00:53:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-03-17 00:53:53 +0100
commit220938f8ffd314c6682bc56d772de5b07c09aca9 (patch)
treec2ed1b7ad7a8629cecbffa01c6016e6ae2d1b452 /src/webpage.cpp
parentFirst bunch of fixes for the NewTabPage + WebSnap chain. (diff)
downloadrekonq-220938f8ffd314c6682bc56d772de5b07c09aca9.tar.xz
First Krazy rekonq-git fixes :D
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 4caf5a83..42193ed0 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -312,12 +312,13 @@ void WebPage::downloadRequest(const QNetworkRequest &request)
if (finfo.exists())
{
QDateTime now = QDateTime::currentDateTime();
- KIO::RenameDialog dlg (view(), i18n("Overwrite File?"), srcUrl, destUrl,
- KIO::RenameDialog_Mode(KIO::M_OVERWRITE | KIO::M_SKIP),
- -1, finfo.size(),
- now.toTime_t(), finfo.created().toTime_t(),
- now.toTime_t(), finfo.lastModified().toTime_t());
- result = dlg.exec();
+ QPointer<KIO::RenameDialog> dlg = new KIO::RenameDialog( view(), i18n("Overwrite File?"), srcUrl, destUrl,
+ KIO::RenameDialog_Mode(KIO::M_OVERWRITE | KIO::M_SKIP),
+ -1, finfo.size(),
+ now.toTime_t(), finfo.created().toTime_t(),
+ now.toTime_t(), finfo.lastModified().toTime_t());
+ result = dlg->exec();
+ delete dlg;
}
}
}