CtrlLib: FileSel: Fixed problem with unreadable folder in MacOS

git-svn-id: svn://ultimatepp.org/upp/trunk@13950 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-01-28 15:25:04 +00:00
parent f9918c3f4f
commit 44f61e2e22
3 changed files with 2 additions and 1 deletions

View file

@ -92,6 +92,7 @@
#ifdef PLATFORM_OSX
#include <dispatch/dispatch.h>
#endif
#include <time.h>
#endif //PLATFORM_POSIX
#ifdef PLATFORM_POSIX

View file

@ -813,6 +813,7 @@ void FileSel::SearchLoad()
#endif
String emask = GetMask();
if(!UPP::Load(list, d, emask, mode == SELECTDIR, WhenIcon, *filesystem, ~search, ~hidden, ~hiddenfiles, true)) {
loaded = false;
Exclamation(t_("[A3* Unable to read the directory !]&&") + DeQtf((String)~dir) + "&&" +
GetErrorMessage(GetLastError()));
if(!basedir.IsEmpty() && String(~dir).IsEmpty()) {

View file

@ -27,7 +27,6 @@ void IconShow::Paint(Draw& w)
w.DrawRect(x, 0, cx, sz.cy, color[i]);
if(msz.cx) {
if(show_other) {
Size osz = 2 * isz;
Point c(x + cx / 2, sz.cy / 2);
w.DrawImage(c.x - DPI(8) - isz.cx, c.y - DPI(8) - isz.cy, image);
w.DrawImage(c.x + DPI(8), c.y - DPI(8) - isz.cy, DarkTheme(image));