Skip to content

Commit

Permalink
Report: Handle 'ClearHistory' without open Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
rcassani committed Sep 23, 2024
1 parent 18a83d4 commit c646168
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON!<BR>SET UP A <FONT color=red>BACKUP</FONT> OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.240920 (20-Sep-2024)<br>
<!-- LICENCE_START -->Version: 3.240923 (23-Sep-2024)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2024
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.240920 (20-Sep-2024)
% v. 3.240923 (23-Sep-2024)
3 changes: 3 additions & 0 deletions toolbox/process/bst_report.m
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,9 @@ function ClearHistory(isUserConfirm)
end
% Get all the available reports
ProtocolInfo = bst_get('ProtocolInfo');
if isempty(ProtocolInfo)
return
end
ProtocolName = file_standardize(ProtocolInfo.Comment);
reportsDir = bst_get('UserReportsDir');
% If directory exists
Expand Down

0 comments on commit c646168

Please sign in to comment.