Adjust the state of the reload action correctly.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 14:30:17 +0000 (14:30 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 14:30:17 +0000 (14:30 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27543 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/qt/Api/qwebpage.cpp
WebKit/qt/ChangeLog

index 6a356b36db71ef11c36743bf7e922a5af253f59b..9d5995b4a742277928d2ba906d8143fed0f12e32 100644 (file)
@@ -222,6 +222,9 @@ void QWebPagePrivate::updateAction(QWebPage::WebAction action)
         case QWebPage::Stop:
             enabled = loader->isLoading();
             break;
+        case QWebPage::Reload:
+            enabled = !loader->isLoading();
+            break;
         case QWebPage::Cut:
             enabled = editor->canCut();
             break;
@@ -246,6 +249,7 @@ void QWebPagePrivate::updateNavigationActions()
     updateAction(QWebPage::GoBack);
     updateAction(QWebPage::GoForward);
     updateAction(QWebPage::Stop);
+    updateAction(QWebPage::Reload);
 }
 
 void QWebPagePrivate::updateEditorActions()
index 9e366c724657ad56c7fffce8c2a79e27a23509bc..33c98999e2fb146d65f2adce0660109c180e858a 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-07  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Lars.
+
+        Adjust the state of the reload action correctly.
+
+        * Api/qwebpage.cpp:
+        (QWebPagePrivate::updateAction):
+        (QWebPagePrivate::updateNavigationActions):
+
 2007-11-07  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.