summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtHighlightEditor.cpp')
-rw-r--r--Swift/QtUI/QtHighlightEditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp
index 50d1f78..1d47c4e 100644
--- a/Swift/QtUI/QtHighlightEditor.cpp
+++ b/Swift/QtUI/QtHighlightEditor.cpp
@@ -425,20 +425,20 @@ HighlightRule QtHighlightEditor::ruleFromDialog()
425 rule.setMatchChat(false); 425 rule.setMatchChat(false);
426 rule.setMatchMUC(true); 426 rule.setMatchMUC(true);
427 } 427 }
428 428
429 if (ui_.allMsgRadio->isChecked()) { 429 if (ui_.allMsgRadio->isChecked()) {
430 action.setHighlightAllText(true); 430 action.setHighlightWholeMessage(true);
431 } 431 }
432 432
433 if (ui_.senderRadio->isChecked()) { 433 if (ui_.senderRadio->isChecked()) {
434 QString senderName = jid_->text(); 434 QString senderName = jid_->text();
435 if (!senderName.isEmpty()) { 435 if (!senderName.isEmpty()) {
436 std::vector<std::string> senders; 436 std::vector<std::string> senders;
437 senders.push_back(Q2PSTRING(senderName)); 437 senders.push_back(Q2PSTRING(senderName));
438 rule.setSenders(senders); 438 rule.setSenders(senders);
439 action.setHighlightAllText(true); 439 action.setHighlightWholeMessage(true);
440 } 440 }
441 } 441 }
442 442
443 if (ui_.keywordRadio->isChecked()) { 443 if (ui_.keywordRadio->isChecked()) {
444 QString keywordString = ui_.keyword->text(); 444 QString keywordString = ui_.keyword->text();