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