From d556aa00c817d3aec8243410bcd94a4ce2a5329d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 18 Feb 2004 14:31:23 +0000 Subject: [PATCH] Moved the forced focus out of the DataView and into the ProbeView, since that should not be the default behaviour of the DataView class. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6633 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 8 ++++++++ src/apps/diskprobe/ProbeView.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index 7174857bb9..9458344114 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -762,6 +762,14 @@ ProbeView::AllAttached() } +void +ProbeView::WindowActivated(bool active) +{ + if (active) + fDataView->MakeFocus(true); +} + + void ProbeView::MessageReceived(BMessage *message) { diff --git a/src/apps/diskprobe/ProbeView.h b/src/apps/diskprobe/ProbeView.h index 235dd8219d..84a3ed8808 100644 --- a/src/apps/diskprobe/ProbeView.h +++ b/src/apps/diskprobe/ProbeView.h @@ -27,6 +27,7 @@ class ProbeView : public BView { virtual void DetachedFromWindow(); virtual void AttachedToWindow(); virtual void AllAttached(); + virtual void WindowActivated(bool active); virtual void MessageReceived(BMessage *message); void AddFileMenuItems(BMenu *menu, int32 index);