summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtHighlightEditor.cpp')
-rw-r--r--Swift/QtUI/QtHighlightEditor.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp
index 598a52b..d4e8899 100644
--- a/Swift/QtUI/QtHighlightEditor.cpp
+++ b/Swift/QtUI/QtHighlightEditor.cpp
@@ -97,9 +97,9 @@ std::string formatLongDescription(const HighlightRule& rule)
if (rule.getMatchChat() && rule.getMatchMUC()) {
text += "either in chats or in rooms";
} else if (rule.getMatchChat()) {
- text += "in chats only";
+ text += "in chats";
} else if (rule.getMatchMUC()) {
- text += "in rooms only";
+ text += "in rooms";
} else {
return "This rule has not been marked as a chat or room rule!";
}
@@ -328,6 +328,12 @@ void QtHighlightEditor::setChildWidgetStates()
ui_.matchWholeWords->setEnabled(false);
ui_.matchCase->setEnabled(false);
}
+
+ if (ui_.chatRadio->isChecked()) {
+ ui_.allMsgRadio->setText(tr("Apply to all chat messages"));
+ } else {
+ ui_.allMsgRadio->setText(tr("Apply to all room messages"));
+ }
}
void QtHighlightEditor::widgetClick()