filebrowser: paintFoot() at every ChangeDir()

this fixes the empty footer when parentDir was empty


Origin commit data
------------------
Commit: f22a8ee1c6
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-05-31 (Sat, 31 May 2014)

Origin message was:
------------------
- filebrowser: paintFoot() at every ChangeDir()

 this fixes the empty footer when parentDir was empty
This commit is contained in:
vanhofen
2014-05-31 15:23:46 +02:00
parent 2c73f75ec2
commit 3550e1e5c7

View File

@@ -405,8 +405,10 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection)
selected = 0; selected = 0;
if ((selection != -1) && (selection < (int)filelist.size())) if ((selection != -1) && (selection < (int)filelist.size()))
selected = selection; selected = selection;
paintHead(); paintHead();
paint(); paint();
paintFoot();
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
@@ -763,8 +765,6 @@ bool CFileBrowser::exec(const char * const dirname)
selection = selected; selection = selected;
ChangeDir(name, selection); ChangeDir(name, selection);
//paint();
paintFoot();
int oldselected = selected; int oldselected = selected;
@@ -910,7 +910,6 @@ bool CFileBrowser::exec(const char * const dirname)
if(Filter != NULL) if(Filter != NULL)
{ {
use_filter = !use_filter; use_filter = !use_filter;
paintFoot();
ChangeDir(Path); ChangeDir(Path);
} }
} }