Skip to content

Commit ffa2db9

Browse files
Fix for Issue #104:
If the ribbon settings file is currently in use, and blocked for read access, an EFOpenError is raised that was previosly not caught.
1 parent 5f49a72 commit ffa2db9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/UIRibbon.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,8 @@ function TUIRibbon.LoadRibbonSettings(): boolean;
11241124
except
11251125
on E: EOleError do
11261126
{$IFDEF DEBUG}raise;{$else}Exit(False);{$endif}
1127+
on E: EFOpenError do
1128+
{$IFDEF DEBUG}raise;{$else}Exit(False);{$endif}
11271129
end;
11281130
Exit(True);
11291131
end;

0 commit comments

Comments
 (0)