Remove "to upper dir" on root dir
@@ -245,13 +245,15 @@ static void dlgsetlist(void) {
prm.pos = 0;
fl = filesel.fbase;
while(fl) {
+ if(!((strcmp(filesel.path, "") == 0 || strcmp(filesel.path, "/") == 0) && (strcmp(fl->name, ".") == 0 || strcmp(fl->name, "..") == 0))) {
menudlg_itemappend(DID_FLIST, NULL);
prm.icon = (fl->isdir)?MICON_FOLDER:MICON_FILE;
prm.str = fl->name;
menudlg_itemsetex(DID_FLIST, &prm);
- fl = fl->next;
prm.pos++;
}
+ fl = fl->next;
+ }
}
#if defined(_WIN32)
