From 220938f8ffd314c6682bc56d772de5b07c09aca9 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 17 Mar 2010 00:53:53 +0100 Subject: First Krazy rekonq-git fixes :D --- src/webpage.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/webpage.cpp') 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 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; } } } -- cgit v1.2.1