summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-17 00:53:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-03-17 00:53:53 +0100
commit220938f8ffd314c6682bc56d772de5b07c09aca9 (patch)
treec2ed1b7ad7a8629cecbffa01c6016e6ae2d1b452
parentFirst bunch of fixes for the NewTabPage + WebSnap chain. (diff)
downloadrekonq-220938f8ffd314c6682bc56d772de5b07c09aca9.tar.xz
First Krazy rekonq-git fixes :D
-rw-r--r--src/clicktoflash.cpp2
-rw-r--r--src/clicktoflash.h2
-rw-r--r--src/webpage.cpp13
-rw-r--r--src/websnap.h2
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!)
*