Diffstat (limited to 'core/apps/textedit/fileBrowser.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index 41e800c..acd50c2 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp | |||
@@ -198,8 +198,16 @@ void fileBrowser::populateList() | |||
198 | QPixmap pm; | 198 | QPixmap pm; |
199 | pm= Resource::loadPixmap( "folder" ); | 199 | pm= Resource::loadPixmap( "folder" ); |
200 | if(isDir || fileL.find("/",0,TRUE) != -1) | 200 | |
201 | if(isDir || fileL.find("/",0,TRUE) != -1) { | ||
202 | if( !QDir( fi->filePath() ).isReadable()) | ||
203 | pm = Resource::loadPixmap( "lockedfolder" ); | ||
201 | item->setPixmap( 0,pm ); | 204 | item->setPixmap( 0,pm ); |
205 | } else { | ||
206 | if( !fi->isReadable() ) | ||
207 | pm = Resource::loadPixmap( "locked" ); | ||
202 | else | 208 | else |
203 | item->setPixmap( 0, Resource::loadPixmap( "fileopen" )); | 209 | pm = Resource::loadPixmap( "fileopen" ); |
210 | item->setPixmap( 0,pm); | ||
211 | } | ||
204 | if( fileL.find("->",0,TRUE) != -1) { | 212 | if( fileL.find("->",0,TRUE) != -1) { |
205 | // overlay link image | 213 | // overlay link image |