From 46c7cd186e5af0624616fbe5258155ac3bcea437 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 19 Dec 2015 19:18:21 +0000 Subject: [PATCH] [REGEDIT] When the root item in the treeview is selected, remove all items from the listview and wipe the address bar and status bar. svn path=/trunk/; revision=70402 --- reactos/base/applications/regedit/childwnd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/base/applications/regedit/childwnd.c b/reactos/base/applications/regedit/childwnd.c index 6a3b41dba79..06dab532290 100644 --- a/reactos/base/applications/regedit/childwnd.c +++ b/reactos/base/applications/regedit/childwnd.c @@ -348,6 +348,12 @@ UpdateAddress(HTREEITEM hItem, HKEY hRootKey, LPCWSTR pszPath) } } } + else + { + (void)ListView_DeleteAllItems(g_pChildWnd->hListWnd); + SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)NULL); + SendMessageW(g_pChildWnd->hAddressBarWnd, WM_SETTEXT, 0, (LPARAM)NULL); + } } /*******************************************************************************