diff options
-rw-r--r-- | src/clicktoflash.cpp | 2 | ||||
-rw-r--r-- | src/clicktoflash.h | 2 | ||||
-rw-r--r-- | src/webpage.cpp | 13 | ||||
-rw-r--r-- | 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 <ben@meyerhome.net> * Copyright (C) 2010 by Matthieu Gicquel <matgic78@gmail.com> * * 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 <ben@meyerhome.net> * Copyright (C) 2010 by Matthieu Gicquel <matgic78@gmail.com> * * 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; } } } 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!) * |