mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Crash - configure custom columns (issue #1310)
(cherry picked from commit f4c82e3c7a)
This commit is contained in:
parent
99c7620893
commit
5285b736d1
1 changed files with 2 additions and 2 deletions
|
|
@ -292,7 +292,7 @@ begin
|
|||
|
||||
//4. Load our list of columns set.
|
||||
FillFileSystemList;
|
||||
FillColumnsList;
|
||||
cmbFileSystemChange(cmbFileSystem);
|
||||
|
||||
//5. Select the one we currently have in the active panel if possible. User won't be lost and it's the most pertinent thing to do.
|
||||
if frmMain.ActiveNotebook.ActiveView.ClassNameIs('TColumnsFileView') then
|
||||
|
|
@ -440,7 +440,7 @@ end;
|
|||
{ TfrmOptionsCustomColumns.cbConfigColumnsChange }
|
||||
procedure TfrmOptionsCustomColumns.cbConfigColumnsChange(Sender: TObject);
|
||||
begin
|
||||
if bColumnConfigLoaded then
|
||||
if bColumnConfigLoaded and (cbConfigColumns.ItemIndex >= 0) then
|
||||
begin
|
||||
ColumnClass.Assign(ColSet.GetColumnSet(PtrInt(cbConfigColumns.Items.Objects[cbConfigColumns.ItemIndex])));
|
||||
LastLoadedOptionSignature := ComputeCompleteOptionsSignature;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue