Skip to content
Snippets Groups Projects
Commit 0421b9d0 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

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
parent 699e3657
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment