src: Fixes for release
* clear references count when clearing code view * fixed scrolling to character in overview lists * fixed aggregation activation shown in history menu * fixed same snippet being added twice * Sourcetrail [Trial] as window title * fixed undoing trail expand will always reactivate symbol
This commit is contained in:
@@ -548,6 +548,11 @@ void UndoRedoController::updateHistory()
|
||||
index++;
|
||||
|
||||
SearchMatch match = getSearchMatchForMessage(it->message.get());
|
||||
if (!match.text.size())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!firstActiveMessage)
|
||||
{
|
||||
firstActiveMessage = true;
|
||||
@@ -567,20 +572,17 @@ void UndoRedoController::updateHistory()
|
||||
}
|
||||
}
|
||||
|
||||
if (match.text.size())
|
||||
matches.push_back(match);
|
||||
|
||||
if (matches.size() > historySize)
|
||||
{
|
||||
matches.push_back(match);
|
||||
matches.erase(matches.begin());
|
||||
m_historyOffset++;
|
||||
}
|
||||
|
||||
if (matches.size() > historySize)
|
||||
{
|
||||
matches.erase(matches.begin());
|
||||
m_historyOffset++;
|
||||
}
|
||||
|
||||
if (matches.size() == historySize && currentIndex != -1 && currentIndex - m_historyOffset != historySize - 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (matches.size() == historySize && currentIndex != -1 && currentIndex - m_historyOffset != historySize - 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user