diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-17 00:53:53 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-17 00:53:53 +0100 |
commit | 220938f8ffd314c6682bc56d772de5b07c09aca9 (patch) | |
tree | c2ed1b7ad7a8629cecbffa01c6016e6ae2d1b452 /src/webpage.cpp | |
parent | First bunch of fixes for the NewTabPage + WebSnap chain. (diff) | |
download | rekonq-220938f8ffd314c6682bc56d772de5b07c09aca9.tar.xz |
First Krazy rekonq-git fixes :D
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 13 |
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; } } } |