summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-08-02 13:19:42 +0200
committerLinus Groh <mail@linusgroh.de>2021-08-02 12:48:55 +0100
commit9179d01915ff85978cbd639d86be5f3d40269713 (patch)
tree13e502646dea7bcf225943114c98c6e7cb497824 /Userland
parent74af43ed9778c28cba6865ceffceb6998bac17e3 (diff)
downloadserenity-9179d01915ff85978cbd639d86be5f3d40269713.zip
LibGUI: Remove redundant code
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/TextEditor.cpp4
1 files 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);