Expander: don't allow selecting text while listing files

Selecting moves the cursor and results in file listing being inserted
at the wrong place.
This commit is contained in:
Adrien Destugues 2020-07-27 21:10:26 +02:00
parent d0e9e3ca27
commit affb3a4a62

View File

@ -818,6 +818,7 @@ ExpanderWindow::StartListing()
text.ReplaceFirst("%s", path.Leaf());
fStatusView->SetStatus(text.String());
fListingText->SetText("");
fListingText->MakeSelectable(false);
fListingThread = new ExpanderThread(&message, new BMessenger(this));
fListingThread->Start();
@ -836,6 +837,7 @@ ExpanderWindow::StopListing(void)
fListingStarted = false;
fListingText->MakeSelectable(true);
fShowContents->SetEnabled(true);
fSourceItem->SetEnabled(true);
fDestItem->SetEnabled(true);