summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/filemanager.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-10-05 14:57:36 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2010-10-05 15:07:35 +0200
commit0421b9d0dca5cb844f97edf31f4632b0696c254a (patch)
tree60d7bef600c363da053e1646c5f280a644af0910 /src/plugins/coreplugin/filemanager.cpp
parent699e3657a9f00f47701fe5d25458c07f05d22749 (diff)
downloadqt-creator-0421b9d0dca5cb844f97edf31f4632b0696c254a.tar.gz
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
Diffstat (limited to 'src/plugins/coreplugin/filemanager.cpp')
-rw-r--r--src/plugins/coreplugin/filemanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/filemanager.cpp b/src/plugins/coreplugin/filemanager.cpp
index bb5bf60825..127c969c7d 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());
}