DiskProbe: select Find window text
Select the text to find as the Find window is opened. This makes the behavior more consistent with other apps. Fixes the main subject of #10844. Also removes trailing whitespace. Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
parent
ed1b81b72b
commit
1bf0271fa0
@ -631,6 +631,14 @@ FindWindow::QuitRequested()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
FindWindow::Show()
|
||||||
|
{
|
||||||
|
fTextView->SelectAll();
|
||||||
|
BWindow::Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
FindWindow::SetTarget(BMessenger& target)
|
FindWindow::SetTarget(BMessenger& target)
|
||||||
{
|
{
|
||||||
|
@ -30,6 +30,7 @@ class FindWindow : public BWindow {
|
|||||||
virtual void WindowActivated(bool active);
|
virtual void WindowActivated(bool active);
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage *message);
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
|
virtual void Show();
|
||||||
|
|
||||||
void SetTarget(BMessenger &target);
|
void SetTarget(BMessenger &target);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user