From 871620540d2b64748aa18eb1b96ad3fd2c1fc0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 6 Apr 2011 08:47:48 +0000 Subject: [PATCH] Follow up commit on r41184, which removed the Edit->Clear menu item. I suppose it was discussed on the i18n list as mentioned in that commit. However two things, Humdinger: 1) You did not test your commit, and 2) You did incomplete cleanup. If you had removed the member variable from the StyledEditWindow header, you would have gotten at least a compile error. Those things being said, I did not test my changes either... :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41187 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/stylededit/StyledEditWindow.cpp | 2 -- src/apps/stylededit/StyledEditWindow.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index fc06d3a93f..6cd9270001 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -440,12 +440,10 @@ StyledEditWindow::MessageReceived(BMessage* message) case ENABLE_ITEMS: fCutItem->SetEnabled(true); fCopyItem->SetEnabled(true); - fClearItem->SetEnabled(true); break; case DISABLE_ITEMS: fCutItem->SetEnabled(false); fCopyItem->SetEnabled(false); - fClearItem->SetEnabled(false); break; case TEXT_CHANGED: if (fUndoFlag) { diff --git a/src/apps/stylededit/StyledEditWindow.h b/src/apps/stylededit/StyledEditWindow.h index 8ac99bc51c..241de3044a 100644 --- a/src/apps/stylededit/StyledEditWindow.h +++ b/src/apps/stylededit/StyledEditWindow.h @@ -93,7 +93,6 @@ private: BMenuItem* fUndoItem; BMenuItem* fCutItem; BMenuItem* fCopyItem; - BMenuItem* fClearItem; BMenuItem* fFindAgainItem; BMenuItem* fReplaceSameItem;