[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] sieveeditor: Fix enable/disable menu action
From:       Montel Laurent <montel () kde ! org>
Date:       2015-03-23 8:31:50
Message-ID: E1YZxm2-0004eK-Hs () scm ! kde ! org
[Download RAW message or body]

Git commit e42ec4433a170716ec98cc3d95290a7c6ca8b037 by Montel Laurent.
Committed on 23/03/2015 at 08:31.
Pushed by mlaurent into branch 'master'.

Fix enable/disable menu action

M  +4    -4    sieveeditor/sieveeditormainwindow.cpp

http://commits.kde.org/kdepim/e42ec4433a170716ec98cc3d95290a7c6ca8b037

diff --git a/sieveeditor/sieveeditormainwindow.cpp b/sieveeditor/sieveedito=
rmainwindow.cpp
index 46df6d3..0081b26 100644
--- a/sieveeditor/sieveeditormainwindow.cpp
+++ b/sieveeditor/sieveeditormainwindow.cpp
@@ -286,12 +286,12 @@ void SieveEditorMainWindow::slotUpdateActions()
     mSaveAsAction->setEnabled(hasPage);
     mImportAction->setEnabled(hasPage);
     mShareAction->setEnabled(hasPage && !mNetworkIsDown);
-    mSpellCheckAction->setEnabled(hasPage);
+    mSpellCheckAction->setEnabled(editActionEnabled);
     mCheckSyntaxAction->setEnabled(hasPage && !mNetworkIsDown);
     mAutoGenerateScriptAction->setEnabled(hasPage);
-    mCommentAction->setEnabled(hasPage);
-    mUncommentAction->setEnabled(hasPage);
-    mMenuChangeCaseAction->setEnabled(hasPage);
+    mCommentAction->setEnabled(editActionEnabled);
+    mUncommentAction->setEnabled(editActionEnabled);
+    mMenuChangeCaseAction->setEnabled(editActionEnabled);
 }
 =

 void SieveEditorMainWindow::slotUndoAvailable(bool b)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic