Skip to content

Commit

Permalink
Fix for Issue #104:
Browse files Browse the repository at this point in the history
If the ribbon settings file is currently in use, and blocked for read access, an EFOpenError is raised that was previosly not caught.
  • Loading branch information
SaschaSchaefer committed Sep 6, 2018
1 parent 5f49a72 commit ffa2db9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/UIRibbon.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ function TUIRibbon.LoadRibbonSettings(): boolean;
except
on E: EOleError do
{$IFDEF DEBUG}raise;{$else}Exit(False);{$endif}
on E: EFOpenError do
{$IFDEF DEBUG}raise;{$else}Exit(False);{$endif}
end;
Exit(True);
end;
Expand Down

0 comments on commit ffa2db9

Please sign in to comment.