Skip to content

Commit

Permalink
BugFix: color triggers get erased in 3.6.1 (Mudlet#1477)
Browse files Browse the repository at this point in the history
In Mudlet@5ce683b

The writing of the (encoded) colour trigger data into the
(QLineEdit*) pItem->lineEdit_pattern in
(void) dlgTriggerEditor::slot_trigger_selected(QTreeWidget*) was removed if
the trigger item is a colour one - probably because in that type that
element is hidden from the user (as it was then also removed for the new
Prompt type trigger.

This closes Issue: 1468

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
  • Loading branch information
SlySven authored and vadi2 committed Dec 23, 2017
1 parent 64d8e98 commit dd9732f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dlgTriggerEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4946,6 +4946,8 @@ void dlgTriggerEditor::slot_trigger_selected(QTreeWidgetItem* pItem)
pItem->pushButton_fgColor->show();
pItem->pushButton_bgColor->show();
pItem->pushButton_prompt->hide();
// Although not shown it holds the data about the colours selected:
pItem->lineEdit_pattern->setText(patternList.at(i));
pItem->lineEdit_pattern->hide();
if (!pT->mColorPatternList[i]) {
break;
Expand Down

0 comments on commit dd9732f

Please sign in to comment.