From 5797cdc36fa5387b0c786f017aa31ee8bc9658df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 31 Jan 2005 22:08:59 +0000 Subject: [PATCH] We update to the contents for new files (bug from Fredrik Ekdahl) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11174 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/expander/ExpanderWindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/apps/expander/ExpanderWindow.cpp b/src/apps/expander/ExpanderWindow.cpp index 45785544b7..7c3b7ea34e 100644 --- a/src/apps/expander/ExpanderWindow.cpp +++ b/src/apps/expander/ExpanderWindow.cpp @@ -416,10 +416,15 @@ ExpanderWindow::RefsReceived(BMessage *msg) fExpandButton->SetEnabled(true); fExpandItem->SetEnabled(true); } - - fShowContents->SetEnabled(true); - fShowItem->SetEnabled(true); - + + if (fShowContents->Value() == B_CONTROL_ON) { + StopListing(); + StartListing(); + } else { + fShowContents->SetEnabled(true); + fShowItem->SetEnabled(true); + } + bool fromApp; if (msg->FindBool("fromApp", &fromApp)==B_OK) { AutoExpand();