Ignore:
Timestamp:
Nov 22, 2014, 12:15:53 AM (9 years ago)
Author:
sommeria
Message:

message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uigetfile_uvmat.m

    r809 r824  
    147147htitlebox=findobj(hfig,'tag','titlebox');  % display the current dir name 
    148148DirName=get(htitlebox,'String');
    149 
     149if isempty(regexp(DirName,'^http://'))% if the input dir is not a web site (begins by http://)
     150%     FullSelectName=DirName;
     151% else
    150152if ~strcmp(filter_ext,'uigetdir')% a file is expected as output, not a dir
    151153    hlist=findobj(hfig,'Tag','list');
     
    162164    end
    163165    FullSelectName=fullfile(DirName,SelectName);
     166    % if regexp(DirName,'^http://')% if the input dir is a web site (begins by http://)
     167
    164168    if exist(FullSelectName,'file')
    165169        switch option
     
    181185    end
    182186end
     187end
    183188set(hObject,'backgroundColor',[0 1 0])% indicate end button activation
    184189uiresume(get(hObject,'parent'))
     
    313318NumFiles=0; %default
    314319if numel(ListStruct)<1  % case of empty dir
     320%     if regexp(DirName,'^http://')% if the input dir is a web site (begins by http://)
     321%         web(DirName)
     322%     else
    315323    ListFiles={};
    316324    return
     325%     end
    317326end
    318327ListCells=struct2cell(ListStruct);% transform dir struct to a cell arrray
Note: See TracChangeset for help on using the changeset viewer.