Skip to content

Commit

Permalink
fix for #215 -- save changes to default column settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-e authored and derceg committed Oct 9, 2020
1 parent 522ea27 commit bd2738e
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 @@ -270,7 +270,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 @@ -296,7 +296,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 bd2738e

Please sign in to comment.