Commit 77aa5b18 authored by Tim Jenssen's avatar Tim Jenssen

ProjectTree: remove not used invalidCurrentNode argument

Change-Id: I31f5c5e8218620b469e568d22a9fa00c49f151ad
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 583361af
......@@ -133,7 +133,7 @@ void ProjectTree::focusChanged()
s_instance->updateFromFocus();
}
void ProjectTree::updateFromFocus(bool invalidCurrentNode)
void ProjectTree::updateFromFocus()
{
ProjectTreeWidget *focus = m_focusForContextMenu;
if (!focus)
......@@ -142,7 +142,7 @@ void ProjectTree::updateFromFocus(bool invalidCurrentNode)
if (focus)
updateFromProjectTreeWidget(focus);
else
updateFromDocumentManager(invalidCurrentNode);
updateFromDocumentManager();
}
void ProjectTree::updateFromProjectTreeWidget(ProjectTreeWidget *widget)
......@@ -158,13 +158,13 @@ void ProjectTree::documentManagerCurrentFileChanged()
updateFromFocus();
}
void ProjectTree::updateFromDocumentManager(bool invalidCurrentNode)
void ProjectTree::updateFromDocumentManager()
{
Core::IDocument *document = Core::EditorManager::currentDocument();
const FileName fileName = document ? document->filePath() : FileName();
Node *currentNode = nullptr;
if (!invalidCurrentNode && m_currentNode && m_currentNode->filePath() == fileName)
if (m_currentNode && m_currentNode->filePath() == fileName)
currentNode = m_currentNode;
else
currentNode = ProjectTreeWidget::nodeForFile(fileName);
......
......@@ -88,12 +88,12 @@ private:
void focusChanged();
void updateFromProjectTreeWidget(Internal::ProjectTreeWidget *widget);
void documentManagerCurrentFileChanged();
void updateFromDocumentManager(bool invalidCurrentNode = false);
void updateFromDocumentManager();
void updateFromNode(Node *node);
void update(Node *node, Project *project);
void updateContext();
void updateFromFocus(bool invalidCurrentNode = false);
void updateFromFocus();
void updateExternalFileWarning();
static bool hasFocus(Internal::ProjectTreeWidget *widget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment