comparison kdiff3/src-QT4/mergeresultwindow.cpp @ 98:236f1c9c3fbf

- Fixed redundant empty line in history merge. - Fixed inconsistency in directory view info area after scan. - Fixed crash if trying to disable "Dir & Text Split Screen View" and no file is loaded. - Fixed test dialog for regular expressions.
author joachim99
date Sat, 15 May 2010 20:36:52 +0000
parents 4e6ebbbae925
children 1b9430d5cf2b
comparison
equal deleted inserted replaced
97:5024edf90636 98:236f1c9c3fbf
1384 ++historyCount; 1384 ++historyCount;
1385 HistoryMapEntry& hme = (*hlit)->second; 1385 HistoryMapEntry& hme = (*hlit)->second;
1386 MergeEditLineList& mell = hme.choice(m_pldC!=0); 1386 MergeEditLineList& mell = hme.choice(m_pldC!=0);
1387 if (!mell.empty()) 1387 if (!mell.empty())
1388 iMLLStart->mergeEditLineList.splice( iMLLStart->mergeEditLineList.end(), mell, mell.begin(), mell.end() ); 1388 iMLLStart->mergeEditLineList.splice( iMLLStart->mergeEditLineList.end(), mell, mell.begin(), mell.end() );
1389 }
1390 // If the end of start is empty and the first line at the end is empty remove the last line of start
1391 if ( !iMLLStart->mergeEditLineList.empty() && !iMLLEnd->mergeEditLineList.empty() )
1392 {
1393 QString lastLineOfStart = iMLLStart->mergeEditLineList.back().getString(this);
1394 QString firstLineOfEnd = iMLLEnd->mergeEditLineList.front().getString(this);
1395 if ( lastLineOfStart.mid(lead.length()).trimmed().isEmpty() && firstLineOfEnd.mid(lead.length()).trimmed().isEmpty() )
1396 iMLLStart->mergeEditLineList.pop_back();
1389 } 1397 }
1390 } 1398 }
1391 setFastSelector( iMLLStart ); 1399 setFastSelector( iMLLStart );
1392 update(); 1400 update();
1393 } 1401 }