mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
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:
parent
f9918c3f4f
commit
44f61e2e22
3 changed files with 2 additions and 1 deletions
|
|
@ -92,6 +92,7 @@
|
|||
#ifdef PLATFORM_OSX
|
||||
#include <dispatch/dispatch.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
#endif //PLATFORM_POSIX
|
||||
|
||||
#ifdef PLATFORM_POSIX
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue