diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-03-26 19:44:27 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-03-26 19:44:27 +0100 |
commit | 7d6797239ca769f12a3f56bdbf3da09a7428c48a (patch) | |
tree | 35011184260cc26bc22ba21910e491b3741eacfc | |
parent | Stop timers before deleting objects. (diff) | |
download | rekonq-7d6797239ca769f12a3f56bdbf3da09a7428c48a.tar.xz |
Reload (also) about pages with the reload button
Another fantastic patch by Johannes Troscher
BUG:267748
-rw-r--r-- | src/mainview.cpp | 11 |
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()); + } } |