bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-06-30 05:23:46 +03:00
parent 0fdea710a7
commit 19c2b2028e

View File

@ -274,7 +274,8 @@ var StatusBarActions = actions.Actions({
// path...
// XXX use generic, platform independent path processing...
} else if(type == 'path'){
text = (img && ((img.base_path || '') +'/'+ img.path) || '---')
// XXX revise this...
text = (img && img.path && ((img.base_path || '') +'/'+ img.path) || '---')
// remove /./
.replace(/[\\\/]\.[\\\/]/, '/')
txt = img && ((img.name || '') + (img.ext || '')) || text.split(/[\\\/]/).pop()