diff options
Diffstat (limited to 'CPP/7zip/UI/FileManager/PanelFolderChange.cpp')
-rwxr-xr-x | CPP/7zip/UI/FileManager/PanelFolderChange.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CPP/7zip/UI/FileManager/PanelFolderChange.cpp b/CPP/7zip/UI/FileManager/PanelFolderChange.cpp index f4d024b2..01fec329 100755 --- a/CPP/7zip/UI/FileManager/PanelFolderChange.cpp +++ b/CPP/7zip/UI/FileManager/PanelFolderChange.cpp @@ -501,6 +501,8 @@ void CPanel::OpenParentFolder() if (_parentFolders.Size () > 1) OpenParentArchiveFolder(); _parentFolders.DeleteBack(); + if (_parentFolders.IsEmpty()) + _flatMode = _flatModeForDisk; } } @@ -528,6 +530,7 @@ void CPanel::CloseOpenFolders() OpenParentArchiveFolder(); _parentFolders.DeleteBack(); } + _flatMode = _flatModeForDisk; _folder.Release(); _library.Free(); } |