Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
fix isparent check
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-tushevg committed Aug 3, 2017
1 parent 3fc0ea4 commit 3f469d5
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions WidgetFolderBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

% parse input
parserObj = inputParser;
addParameter(parserObj, 'Parent', [], @isparent);
addParameter(parserObj, 'Parent', [], @(varin) (isempty(varin) || isgraphics(varin)));
addParameter(parserObj, 'Extension', '*.*', @ischar);
parse(parserObj, varargin{:});

Expand Down Expand Up @@ -97,16 +97,3 @@
end

end



function tf = isparent(varin)

tf = false;

if isempty(varin) || isgraphics(varin)

tf = true;

end
end

0 comments on commit 3f469d5

Please sign in to comment.