Skip to content

Commit

Permalink
Fix issue #2562: Looks like the View Tab Bar "folder icon" is getting…
Browse files Browse the repository at this point in the history
… a green check-mark before the folder compare has even completed.
  • Loading branch information
sdottaka committed Nov 29, 2024
1 parent 75da9bd commit c4be720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/DirView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,8 @@ void CDirView::Redisplay()
int alldiffs = 0;
DIFFITEM *diffpos = ctxt.GetFirstDiffPosition();
const int result = RedisplayChildren(diffpos, 0, cnt, alldiffs);
GetParentFrame()->SetLastCompareResult(result < 0 ? -1 : alldiffs);
const unsigned int threadState = pDoc->m_diffThread.GetThreadState();
GetParentFrame()->SetLastCompareResult((threadState != CDiffThread::THREAD_COMPLETED || result < 0) ? -1 : alldiffs);
SortColumnsAppropriately();
SetRedraw(TRUE);
m_pList->SetItemCount(static_cast<int>(m_listViewItems.size()));
Expand Down

0 comments on commit c4be720

Please sign in to comment.