BTextView: missing archiving of HideTyping()

This was not stored in BeOS, but that looks like an oversight on their
part and adding it is unlikely to break anything.

Change-Id: I5dbaeb85adf97afc5040a3ecc1bff264af0b0b57
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1888
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
Adrien Destugues 2019-09-26 17:18:11 +02:00 committed by Adrien Destugues
parent 192daa430f
commit 9c89ceb807

View File

@ -312,6 +312,11 @@ BTextView::BTextView(BMessage* archive)
_InitObject(rect, NULL, NULL);
bool toggle;
if (archive->FindBool("_password", &toggle) == B_OK)
HideTyping(toggle);
const char* text = NULL;
if (archive->FindString("_text", &text) == B_OK)
SetText(text);
@ -335,8 +340,6 @@ BTextView::BTextView(BMessage* archive)
archive->FindInt32("_sel", &flag2) == B_OK)
Select(flag, flag2);
bool toggle;
if (archive->FindBool("_stylable", &toggle) == B_OK)
SetStylable(toggle);
@ -438,6 +441,8 @@ BTextView::Archive(BMessage* data, bool deep) const
err = data->AddBool("_nsel", !fSelectable);
if (err == B_OK)
err = data->AddBool("_nedit", !fEditable);
if (err == B_OK)
err = data->AddBool("_password", IsTypingHidden());
if (err == B_OK && fDisallowedChars != NULL && fDisallowedChars->CountItems() > 0) {
err = data->AddData("_dis_ch", B_RAW_TYPE, fDisallowedChars->Items(),