From f22a8ee1c6e6cd74e8941270832d4a09ab8d1e10 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 31 May 2014 15:23:46 +0200 Subject: [PATCH] - filebrowser: paintFoot() at every ChangeDir() this fixes the empty footer when parentDir was empty --- src/gui/filebrowser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index c571e29a3..d1dbeb3d3 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -405,8 +405,10 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection) selected = 0; if ((selection != -1) && (selection < (int)filelist.size())) selected = selection; + paintHead(); paint(); + paintFoot(); } //------------------------------------------------------------------------ @@ -763,8 +765,6 @@ bool CFileBrowser::exec(const char * const dirname) selection = selected; ChangeDir(name, selection); - //paint(); - paintFoot(); int oldselected = selected; @@ -910,7 +910,6 @@ bool CFileBrowser::exec(const char * const dirname) if(Filter != NULL) { use_filter = !use_filter; - paintFoot(); ChangeDir(Path); } }