Skip to content

Commit

Permalink
M#3083: Контент-колонка не обновляется при переключении режимов панели
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Sep 4, 2015
1 parent 057219b commit 3e88240
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
drkns 02.09.2015 21:13:07 +0200 - build 4411
shmuel 04.09.2015 13:40:29 +0200 - build 4412

1. M#3083: Контент-колонка не обновляется при переключении режимов панели

drkns 02.09.2015 21:13:07 +0200 - build 4411

1. 0003080: Alternate editor/viewer in FindFile results

Expand Down
13 changes: 6 additions & 7 deletions far/filelist.cpp
Expand Up @@ -3177,15 +3177,13 @@ void FileList::SetViewMode(int Mode)
bool OldNumLink=IsColumnDisplayed(NUMLINK_COLUMN);
bool OldNumStreams=IsColumnDisplayed(NUMSTREAMS_COLUMN);
bool OldStreamsSize=IsColumnDisplayed(STREAMSSIZE_COLUMN);
bool OldCustomData=IsColumnDisplayed(CUSTOM_COLUMN0);
bool OldDiz=IsColumnDisplayed(DIZ_COLUMN);
PrepareViewSettings(Mode,nullptr);
bool NewOwner=IsColumnDisplayed(OWNER_COLUMN);
bool NewPacked=IsColumnDisplayed(PACKED_COLUMN);
bool NewNumLink=IsColumnDisplayed(NUMLINK_COLUMN);
bool NewNumStreams=IsColumnDisplayed(NUMSTREAMS_COLUMN);
bool NewStreamsSize=IsColumnDisplayed(STREAMSSIZE_COLUMN);
bool NewCustomData=IsColumnDisplayed(CUSTOM_COLUMN0);
bool NewDiz=IsColumnDisplayed(DIZ_COLUMN);
bool NewAccessTime=IsColumnDisplayed(ADATE_COLUMN);
int ResortRequired=FALSE;
Expand All @@ -3202,7 +3200,7 @@ void FileList::SetViewMode(int Mode)
(!OldNumLink && NewNumLink) ||
(!OldNumStreams && NewNumStreams) ||
(!OldStreamsSize && NewStreamsSize) ||
(!OldCustomData && NewCustomData) ||
IsColumnDisplayed(CUSTOM_COLUMN0) ||
(AccessTimeUpdateRequired && NewAccessTime)))
Update(UPDATE_KEEP_SELECTION);

Expand Down Expand Up @@ -6667,9 +6665,9 @@ void FileList::ReadFileNames(int KeepSelection, int UpdateEvenIfPanelInvisible,
std::unordered_set<string> ColumnsSet;
const std::vector<column>* ColumnsContainers[] = { &m_ViewSettings.PanelColumns, &m_ViewSettings.StatusColumns };

FOR(const auto& Columns, ColumnsContainers)
for(int i=0; i<ARRAYSIZE(ColumnsContainers); i++)
{
FOR(const auto& Column, *Columns)
FOR(const auto& Column, *ColumnsContainers[i])
{
if ((Column.type & 0xff) == CUSTOM_COLUMN0)
{
Expand All @@ -6680,9 +6678,10 @@ void FileList::ReadFileNames(int KeepSelection, int UpdateEvenIfPanelInvisible,
}

if (!ContentNames.empty())
{
Global->CtrlObject->Plugins->GetContentPlugins(ContentNames, ContentPlugins);

ContentValues.resize(ContentNames.size());
ContentValues.resize(ContentNames.size());
}
}

time_check TimeCheck(time_check::delayed, GetRedrawTimeout());
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4411)m4_dnl
m4_define(BUILD,4412)m4_dnl

0 comments on commit 3e88240

Please sign in to comment.