BTextView and BListView: fix scripting
fix #15539 Change-Id: I5139b91214e19b35af1ead203c070837b7a15bd9 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2017 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
2b2bfa3f27
commit
bb501d4c74
@ -313,6 +313,7 @@ BListView::MessageReceived(BMessage* message)
|
||||
|
||||
if (message->GetCurrentSpecifier(NULL, &specifier) != B_OK
|
||||
|| specifier.FindString("property", &property) != B_OK) {
|
||||
BView::MessageReceived(message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -884,8 +884,10 @@ BTextView::MessageReceived(BMessage* message)
|
||||
const char* property;
|
||||
|
||||
if (message->GetCurrentSpecifier(NULL, &specifier) < B_OK
|
||||
|| specifier.FindString("property", &property) < B_OK)
|
||||
|| specifier.FindString("property", &property) < B_OK) {
|
||||
BView::MessageReceived(message);
|
||||
return;
|
||||
}
|
||||
|
||||
if (propInfo.FindMatch(message, 0, &specifier, specifier.what,
|
||||
property) < B_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user