filter fix

This commit is contained in:
p.kosyh@gmail.com 2011-01-12 06:10:41 +00:00
parent beec2e7d38
commit 21ee6ddaa2
2 changed files with 5 additions and 6 deletions

View file

@ -42,11 +42,6 @@ RESOURCE FILESELECTIONDIALOG r_file_selection_dialog {
title = "Select-a-file:";
root_path = "C:\\";
filters = {
FILTER {
filter_type = EAttributeFilter;
filter_style = EExclusiveFilter;
filter_data = { "SH" }; // Excludes system, hidden and read-only attributes
},
FILTER {
filter_type = EFilenameFilter;
filter_style = EInclusiveFilter;

View file

@ -60,7 +60,11 @@ __do_xact = function(str, self)
error("Empty link: "..s, 3);
end
else
oo = objs():srch(o)
if stead.api_version >= "1.3.2" then
oo = here():srch(o)
else
oo = objs():srch(o)
end
if not oo then
oo = ref(o, true)
end