summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 4ff2f5f56..705ef6e61 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -517,7 +517,8 @@ void ChatWindow::defaultTab()
void ChatWindow::action(const gcn::ActionEvent &event)
{
- if (event.getId() == "chatinput")
+ const std::string &eventId = event.getId();
+ if (eventId == "chatinput")
{
std::string message = mChatInput->getText();
@@ -550,7 +551,7 @@ void ChatWindow::action(const gcn::ActionEvent &event)
setVisible(false);
}
}
- else if (event.getId() == ACTION_COLOR_PICKER)
+ else if (eventId == ACTION_COLOR_PICKER)
{
if (mColorPicker)
{