diff --git a/uppsrc/Core/Core.h b/uppsrc/Core/Core.h index 19b36c7a7..46a9864ee 100644 --- a/uppsrc/Core/Core.h +++ b/uppsrc/Core/Core.h @@ -92,6 +92,7 @@ #ifdef PLATFORM_OSX #include #endif + #include #endif //PLATFORM_POSIX #ifdef PLATFORM_POSIX diff --git a/uppsrc/CtrlLib/FileSel.cpp b/uppsrc/CtrlLib/FileSel.cpp index c44523897..c3e6ac02f 100644 --- a/uppsrc/CtrlLib/FileSel.cpp +++ b/uppsrc/CtrlLib/FileSel.cpp @@ -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()) { diff --git a/uppsrc/IconDes/Paint.cpp b/uppsrc/IconDes/Paint.cpp index a1954ce82..b10b19789 100644 --- a/uppsrc/IconDes/Paint.cpp +++ b/uppsrc/IconDes/Paint.cpp @@ -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));