mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
Revert "- filebrowser: fix 4a9f0cad640137d243772c7b3ebcacc64d80bd00"
This reverts commit6111dc3195
. Origin commit data ------------------ Branch: ni/coolstream Commit:a2b1da8bc9
Author: vanhofen <vanhofen@gmx.de> Date: 2016-10-20 (Thu, 20 Oct 2016) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -1172,6 +1172,9 @@ void CFileBrowser::paintItem(unsigned int pos)
|
|||||||
std::string fileicon;
|
std::string fileicon;
|
||||||
unsigned int currpos = liststart + pos;
|
unsigned int currpos = liststart + pos;
|
||||||
|
|
||||||
|
if (currpos >= filelist.size())
|
||||||
|
return;
|
||||||
|
|
||||||
actual_file = &filelist[currpos];
|
actual_file = &filelist[currpos];
|
||||||
|
|
||||||
bool i_selected = currpos == selected;
|
bool i_selected = currpos == selected;
|
||||||
@@ -1191,9 +1194,6 @@ void CFileBrowser::paintItem(unsigned int pos)
|
|||||||
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0);
|
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0);
|
||||||
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, i_radius);
|
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, i_radius);
|
||||||
|
|
||||||
if (currpos >= filelist.size())
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (g_settings.filebrowser_showrights == 0 && S_ISREG(actual_file->Mode))
|
if (g_settings.filebrowser_showrights == 0 && S_ISREG(actual_file->Mode))
|
||||||
colwidth2 = 0;
|
colwidth2 = 0;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user