Tracker: Open file location on double click from Query fix

Regression from hrev58560.

Originally: `be_app->PostMessage(&message);`
In hrev58560 it was changed to: `Window()->PostMessage(&message);`
Now: `BMessenger(kTrackerSignature).SendMessage(&message);`

The distinction between original and now is for if Tracker is being
used as a kit, in practice this shouldn't make a difference.

hrev58560 was not correct though.

Fixes #19381

Change-Id: Ia48a8adcf2c9853e8309266369ccf7452c20a679
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8890
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
John Scipione
2025-02-01 21:36:11 +00:00
committed by waddlesplash
parent 3805924471
commit 69970cdd5b
+1 -1
View File
@@ -7464,7 +7464,7 @@ BPoseView::WasClickInPath(const BPose* pose, int32 index,
if (entry.GetRef(&ref) == B_OK) { if (entry.GetRef(&ref) == B_OK) {
BMessage message(B_REFS_RECEIVED); BMessage message(B_REFS_RECEIVED);
message.AddRef("refs", &ref); message.AddRef("refs", &ref);
Window()->PostMessage(&message); BMessenger(kTrackerSignature).SendMessage(&message);
return true; return true;
} }