mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 04:37:54 +02:00
In Install/Uninstall package dlg, do not enable "Save and rebuild" and "Save and exit" buttons when filtering.
(cherry picked from commit debaca4729
)
This commit is contained in:
parent
370d32b588
commit
46870b7b8e
@ -759,6 +759,7 @@ var
|
||||
Dependency: TPkgDependency;
|
||||
s: String;
|
||||
ListChanged: Boolean;
|
||||
FilteredBranch: TTreeFilterBranch;
|
||||
begin
|
||||
UninstallButton.Enabled:=InstallTreeView.Selected<>nil;
|
||||
AddToInstallButton.Enabled:=AvailableTreeView.Selected<>nil;
|
||||
@ -775,7 +776,8 @@ begin
|
||||
Dependency:=Dependency.NextRequiresDependency;
|
||||
inc(Cnt);
|
||||
end;
|
||||
if InstalledFilterEdit.GetExistingBranch(nil).Items.Count<>Cnt then
|
||||
FilteredBranch:=InstalledFilterEdit.GetExistingBranch(nil);
|
||||
if Assigned(FilteredBranch) and (FilteredBranch.Items.Count<>Cnt) then
|
||||
ListChanged:=true;
|
||||
SaveAndExitButton.Enabled:=ListChanged;
|
||||
SaveAndRebuildButton.Enabled:=ListChanged;
|
||||
|
Loading…
Reference in New Issue
Block a user