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/clicktoflash.cpp | 2 +- src/clicktoflash.h | 2 +- src/webpage.cpp | 13 +++++++------ src/websnap.h | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/clicktoflash.cpp b/src/clicktoflash.cpp index 3c284b3f..76637975 100644 --- a/src/clicktoflash.cpp +++ b/src/clicktoflash.cpp @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (c) 2009, Benjamin C. Meyer +* Copyright (C) 2009 by Benjamin C. Meyer * Copyright (C) 2010 by Matthieu Gicquel * * diff --git a/src/clicktoflash.h b/src/clicktoflash.h index 7d6c4e05..186b5836 100644 --- a/src/clicktoflash.h +++ b/src/clicktoflash.h @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (c) 2009, Benjamin C. Meyer +* Copyright (C) 2009 by Benjamin C. Meyer * Copyright (C) 2010 by Matthieu Gicquel * * 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; } } } diff --git a/src/websnap.h b/src/websnap.h index 73ed04ca..e7c9e593 100644 --- a/src/websnap.h +++ b/src/websnap.h @@ -48,7 +48,7 @@ /** * This class is used in many classes of rekonq to produce an image * based on the site corresponding to the url passed as argument. - * It also cached the images to not retrieve them everytime :) + * It also cached the images to not retrieve them every time :) * * Heavily based on Graphics-Dojo WebSnap example (thanks!) * -- cgit v1.2.1