|
|
@ -194,16 +194,16 @@ public slots: |
|
|
|
|
|
|
|
|
|
|
|
void storeForEdit() |
|
|
|
void storeForEdit() |
|
|
|
{ |
|
|
|
{ |
|
|
|
textBeforeEdit = text(); |
|
|
|
textBeforeEdit = text(); |
|
|
|
mentionsBefore = mentions_; |
|
|
|
mentionsBefore = mentions_; |
|
|
|
mentionTextsBefore = mentionTexts_; |
|
|
|
mentionTextsBefore = mentionTexts_; |
|
|
|
containsAtRoomBefore = containsAtRoom_; |
|
|
|
containsAtRoomBefore = containsAtRoom_; |
|
|
|
emit mentionsChanged(); |
|
|
|
emit mentionsChanged(); |
|
|
|
} |
|
|
|
} |
|
|
|
void restoreAfterEdit() |
|
|
|
void restoreAfterEdit() |
|
|
|
{ |
|
|
|
{ |
|
|
|
mentions_ = mentionsBefore; |
|
|
|
mentions_ = mentionsBefore; |
|
|
|
mentionTexts_ = mentionTextsBefore; |
|
|
|
mentionTexts_ = mentionTextsBefore; |
|
|
|
containsAtRoom_ = containsAtRoomBefore; |
|
|
|
containsAtRoom_ = containsAtRoomBefore; |
|
|
|
mentionsBefore.clear(); |
|
|
|
mentionsBefore.clear(); |
|
|
|
mentionTextsBefore.clear(); |
|
|
|
mentionTextsBefore.clear(); |
|
|
|