diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 18:32:52 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 18:32:52 +0200 |
commit | 78047f4e1024d0d4fd27b53c8b2ec29ff04afba6 (patch) | |
tree | af684203e2959c8f71bc2c2ad0a88a5d22b5f80b /src/webpage.cpp | |
parent | Add a "show main toolbar" action in the empty tabbar contextual menu (diff) | |
download | rekonq-78047f4e1024d0d4fd27b53c8b2ec29ff04afba6.tar.xz |
Krazy fixes, first bunch
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 8221626e..9167c96d 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -125,12 +125,20 @@ static bool downloadResource (const KUrl& srcUrl, const KIO::MetaData& metaData if (finfo.exists()) { QDateTime now = QDateTime::currentDateTime(); - KIO::RenameDialog dlg (parent, 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( parent, + 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; } } } |