support ./

This commit is contained in:
David Rose 2009-02-05 00:12:32 +00:00
parent f5bb5b420f
commit 05917ee0b4
1 changed files with 8 additions and 4 deletions

View File

@ -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;
}
}