From 64aa58d97676be61a5bb23b1b3d351b032b9b5a0 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Wed, 9 Sep 2015 17:20:19 +0200 Subject: Save 'apply to all' property in highlight rule editor The highlight editor did not save if the user set the 'apply to all' property on a rule. It allows to highlight complete messages or be notified only based on the incoming message type. This commit enables saving the property. Test-Information: Tested chat and room rules with the 'apply to all' property set and verified that the complete messages are highlighted. Change-Id: Ib06bd3111ae810c8362ab8fd36a2d3b67f5a14cc diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp index c6e4319..7aea26b 100644 --- a/Swift/QtUI/QtHighlightEditor.cpp +++ b/Swift/QtUI/QtHighlightEditor.cpp @@ -10,18 +10,20 @@ * See the COPYING file for more information. */ +#include + #include #include -#include +#include +#include + #include -#include -#include -#include -#include -#include +#include +#include +#include namespace Swift { @@ -419,6 +421,10 @@ HighlightRule QtHighlightEditor::ruleFromDialog() rule.setMatchMUC(true); } + if (ui_.allMsgRadio->isChecked()) { + action.setHighlightAllText(true); + } + if (ui_.senderRadio->isChecked()) { QString senderName = jid_->text(); if (!senderName.isEmpty()) { -- cgit v0.10.2-6-g49f6