support ./
This commit is contained in:
parent
f5bb5b420f
commit
05917ee0b4
|
|
@ -545,10 +545,14 @@ bool TinyOsxGraphicsWindow::set_icon_filename(const Filename &icon_filename)
|
|||
|
||||
Filename icon_pathname = icon_filename;
|
||||
if (!vfs->resolve_filename(icon_pathname, get_model_path())) {
|
||||
// The filename doesn't exist.
|
||||
tinydisplay_cat.warning()
|
||||
<< "Could not find icon filename " << icon_filename << "\n";
|
||||
return false;
|
||||
// The filename doesn't exist along the search path.
|
||||
if (icon_pathname.is_fully_qualified() && vfs->exists(icon_pathname)) {
|
||||
// But it does exist locally, so accept it.
|
||||
} else {
|
||||
tinydisplay_cat.warning()
|
||||
<< "Could not find icon filename " << icon_filename << "\n";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue