From 7d6797239ca769f12a3f56bdbf3da09a7428c48a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 26 Mar 2011 19:44:27 +0100 Subject: Reload (also) about pages with the reload button Another fantastic patch by Johannes Troscher BUG:267748 --- src/mainview.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/mainview.cpp') 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()); + } } -- cgit v1.2.1