summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-03-26 19:44:27 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-03-26 19:44:27 +0100
commit7d6797239ca769f12a3f56bdbf3da09a7428c48a (patch)
tree35011184260cc26bc22ba21910e491b3741eacfc /src
parentStop timers before deleting objects. (diff)
downloadrekonq-7d6797239ca769f12a3f56bdbf3da09a7428c48a.tar.xz
Reload (also) about pages with the reload button
Another fantastic patch by Johannes Troscher BUG:267748
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index a0f05ccd..b75e8902 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -205,8 +205,15 @@ void MainView::updateTabBar()
void MainView::webReload()
{
WebTab *webTab = currentWebTab();
- QAction *action = webTab->view()->page()->action(QWebPage::Reload);
- action->trigger();
+ if (webTab->url().scheme() != QL1S("about"))
+ {
+ QAction *action = webTab->view()->page()->action(QWebPage::Reload);
+ action->trigger();
+ }
+ else
+ {
+ webTab->view()->setUrl(webTab->page()->loadingUrl());
+ }
}