From 9179d01915ff85978cbd639d86be5f3d40269713 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Aug 2021 13:19:42 +0200 Subject: LibGUI: Remove redundant code --- Userland/Libraries/LibGUI/TextEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index 68cba0725f..add850840f 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -1478,14 +1478,14 @@ void TextEditor::set_mode(const Mode mode) m_mode = mode; switch (mode) { case Editable: - m_cut_action->set_enabled(true && has_selection()); + m_cut_action->set_enabled(has_selection()); m_delete_action->set_enabled(true); m_paste_action->set_enabled(true); set_accepts_emoji_input(true); break; case DisplayOnly: case ReadOnly: - m_cut_action->set_enabled(false && has_selection()); + m_cut_action->set_enabled(false); m_delete_action->set_enabled(false); m_paste_action->set_enabled(false); set_accepts_emoji_input(false); -- cgit v1.2.3