Skip to content

Commit

Permalink
fix for derceg#215 -- save changes to default column settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-e committed Apr 26, 2020
1 parent da53106 commit 2ba22a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Explorer++/Explorer++/SetDefaultColumnsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void SetDefaultColumnsDialog::SaveCurrentColumnState(FolderType folderType)
{
HWND hListView = GetDlgItem(m_hDlg,IDC_DEFAULTCOLUMNS_LISTVIEW);

auto currentColumns = GetCurrentColumnList(folderType);
auto & currentColumns = GetCurrentColumnList(folderType);
std::vector<Column_t> tempColumns;

for(int i = 0;i < ListView_GetItemCount(hListView);i++)
Expand All @@ -275,7 +275,7 @@ void SetDefaultColumnsDialog::SaveCurrentColumnState(FolderType folderType)
tempColumns.push_back(column);
}

currentColumns = tempColumns;
currentColumns.swap(tempColumns);
}

void SetDefaultColumnsDialog::SetupFolderColumns(FolderType folderType)
Expand Down

0 comments on commit 2ba22a1

Please sign in to comment.