logic: Fixed multiple active symbols broken on undo
* fixed undoing to multiple actives didn't show all nodes in graph * fixed wrong name in search bar, status message and history dropdown * fixed flicker when activating multiple nodes in code view
This commit is contained in:
@@ -74,6 +74,7 @@ void QtCodeFileList::clear()
|
||||
{
|
||||
for (QtCodeFile* file : m_files)
|
||||
{
|
||||
file->hide();
|
||||
file->deleteLater();
|
||||
}
|
||||
|
||||
|
||||
@@ -190,10 +190,10 @@ bool QtSmartSearchBox::event(QEvent *event)
|
||||
{
|
||||
addMatchAndUpdate(m_highlightedMatch);
|
||||
}
|
||||
else if (m_highlightedMatch.hasChildren)
|
||||
else if (m_highlightedMatch.hasChildren && m_highlightedMatch.tokenNames.size())
|
||||
{
|
||||
setEditText(QString::fromStdWString(
|
||||
m_highlightedMatch.getFullName() + nameDelimiterTypeToString(m_highlightedMatch.tokenName.getDelimiter())));
|
||||
m_highlightedMatch.getFullName() + nameDelimiterTypeToString(m_highlightedMatch.tokenNames[0].getDelimiter())));
|
||||
requestAutoCompletions();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -131,7 +131,6 @@ void QtCodeView::showCodeSnippets(const std::vector<CodeSnippetParams>& snippets
|
||||
if (snippet.isCollapsed)
|
||||
{
|
||||
m_widget->addFile(snippet.locationFile, snippet.refCount, snippet.modificationTime);
|
||||
|
||||
addedFiles = true;
|
||||
}
|
||||
else
|
||||
@@ -162,6 +161,11 @@ void QtCodeView::updateCodeSnippets(const std::vector<CodeSnippetParams>& snippe
|
||||
|
||||
for (const CodeSnippetParams& snippet : snippets)
|
||||
{
|
||||
if (!snippet.locationFile || snippet.isCollapsed || snippet.reduced)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
m_widget->updateCodeSnippet(snippet);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user