Tracker: Check whether the default button is disabled on double-click.

The comment above this block specified the correct behavior: the
button's status is already updated elsewhere, so just check IsEnabled().
But the code did not actually do that.

It appears this has been incorrect all the way back to the initial
OpenTracker import in 2001.

Fixes #13721.
This commit is contained in:
Augustin Cavalier 2023-09-23 17:05:19 -04:00
parent 2d42fb1a9a
commit d8bca3564a

View File

@ -1261,7 +1261,7 @@ TFilePanel::MessageReceived(BMessage* message)
// all we have to do is see if the button is enabled.
BButton* button = dynamic_cast<BButton*>(
FindView("default button"));
if (button == NULL)
if (button == NULL || !button->IsEnabled())
break;
if (IsSavePanel()) {