mirror of https://gitlab.com/basile.b/dexed.git
fix TMRUFileList invalid files not removed
This commit is contained in:
parent
f33fa0be53
commit
97589f0ecc
|
@ -36,6 +36,7 @@ type
|
||||||
procedure setMaxCount(aValue: Integer);
|
procedure setMaxCount(aValue: Integer);
|
||||||
function checkItem(const S: string): boolean; virtual;
|
function checkItem(const S: string): boolean; virtual;
|
||||||
procedure Put(Index: Integer; const S: string); override;
|
procedure Put(Index: Integer; const S: string); override;
|
||||||
|
procedure InsertItem(Index: Integer; const S: string); override;
|
||||||
published
|
published
|
||||||
property maxCount: Integer read fMaxCount write setMaxCount;
|
property maxCount: Integer read fMaxCount write setMaxCount;
|
||||||
public
|
public
|
||||||
|
@ -263,6 +264,13 @@ begin
|
||||||
clearOutOfRange;
|
clearOutOfRange;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TMRUList.InsertItem(Index: Integer; const S: string);
|
||||||
|
begin
|
||||||
|
if not (checkItem(S)) then exit;
|
||||||
|
inherited;
|
||||||
|
clearOutOfRange;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TMRUList.Insert(Index: Integer; const S: string);
|
procedure TMRUList.Insert(Index: Integer; const S: string);
|
||||||
begin
|
begin
|
||||||
if not (checkItem(S)) then exit;
|
if not (checkItem(S)) then exit;
|
||||||
|
|
Loading…
Reference in New Issue