From 0421b9d0dca5cb844f97edf31f4632b0696c254a Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Tue, 5 Oct 2010 14:57:36 +0200 Subject: [PATCH] Filemanager: Ignore editory with temporary files When switching to a editor containing a temporary file do not update the filemanager, even when sync to editor is enabled. Task-number: QTCREATORBUG-2605 Reviewed-by: Thorbjorn Lindeijer --- src/plugins/coreplugin/filemanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/filemanager.cpp b/src/plugins/coreplugin/filemanager.cpp index bb5bf60825f..127c969c7df 100644 --- a/src/plugins/coreplugin/filemanager.cpp +++ b/src/plugins/coreplugin/filemanager.cpp @@ -980,7 +980,8 @@ void FileManager::syncWithEditor(Core::IContext *context) return; Core::IEditor *editor = Core::EditorManager::instance()->currentEditor(); - if (editor && (editor->widget() == context->widget())) + if (editor && (editor->widget() == context->widget()) && + !editor->isTemporary()) setCurrentFile(editor->file()->fileName()); } -- GitLab