1. jtuc
  2. WinMerge2011

Commits

jtuc  committed e4b8173

Address the most worrisome aspects of http://winmerge.org/support/3540610

  • Participants
  • Parent commits ae0c79c
  • Branches default

Comments (0)

Files changed (1)

File Src/DirDoc.cpp

View file
 	case FileActionItem::UI_DEL_LEFT:
 		if (di.diffcode.isSideLeftOnly())
 		{
+			m_pDirView->CollapseSubdir(act.context);
 			m_pCtxt->RemoveDiff(pos);
 			m_pDirView->DeleteItem(act.context);
 		}
 	case FileActionItem::UI_DEL_RIGHT:
 		if (di.diffcode.isSideRightOnly())
 		{
+			m_pDirView->CollapseSubdir(act.context);
 			m_pCtxt->RemoveDiff(pos);
 			m_pDirView->DeleteItem(act.context);
 		}
 		break;
 
 	case FileActionItem::UI_DEL_BOTH:
+		m_pDirView->CollapseSubdir(act.context);
 		m_pCtxt->RemoveDiff(pos);
 		m_pDirView->DeleteItem(act.context);
 		break;