[haiku-commits] haiku: hrev54467 - src/apps/expander

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 27 Jul 2020 15:16:30 -0400 (EDT)

hrev54467 adds 1 changeset to branch 'master'
old head: d0e9e3ca270883fe54024e275a1912bb27b81df1
new head: affb3a4a62eab338166b96dd82d82ef3db805f46
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=affb3a4a62ea+%5Ed0e9e3ca2708

----------------------------------------------------------------------------

affb3a4a62ea: Expander: don't allow selecting text while listing files
  
  Selecting moves the cursor and results in file listing being inserted
  at the wrong place.

                             [ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54467
Commit:      affb3a4a62eab338166b96dd82d82ef3db805f46
URL:         https://git.haiku-os.org/haiku/commit/?id=affb3a4a62ea
Author:      Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date:        Mon Jul 27 19:10:26 2020 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+)
src/apps/expander/ExpanderWindow.cpp | 2 ++

----------------------------------------------------------------------------

diff --git a/src/apps/expander/ExpanderWindow.cpp 
b/src/apps/expander/ExpanderWindow.cpp
index 3a49373ba2..9bb647eeb0 100644
--- a/src/apps/expander/ExpanderWindow.cpp
+++ b/src/apps/expander/ExpanderWindow.cpp
@@ -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);


Other related posts:

  • » [haiku-commits] haiku: hrev54467 - src/apps/expander - Adrien Destugues