summaryrefslogtreecommitdiff
path: root/src/plugins/cpaster/cpasterplugin.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-08-24 17:45:21 +0200
committerDavid Boddie <dboddie@trolltech.com>2010-08-24 17:45:21 +0200
commit8e6569663ecbf7389b3df5d86f4ce2d1102b16c0 (patch)
tree290fe9c4af570126949093affc25c7a9fb84e8ed /src/plugins/cpaster/cpasterplugin.cpp
parent1cbc4116d3c6fa1320ee4523e45a5f0df004cd3a (diff)
parente5076cc5e50be46b2f2a2307660e5e8603b780ad (diff)
downloadqt-creator-8e6569663ecbf7389b3df5d86f4ce2d1102b16c0.tar.gz
Merge branch '2.0' of scm.dev.nokia.troll.no:creator/mainline into 2.0
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.cpp')
-rw-r--r--src/plugins/cpaster/cpasterplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp
index 47cbf0091b..e3a17c01d9 100644
--- a/src/plugins/cpaster/cpasterplugin.cpp
+++ b/src/plugins/cpaster/cpasterplugin.cpp
@@ -351,6 +351,8 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
// Keep the file and store in list of files to be removed.
tempFile->setAutoRemove(false);
const QString fileName = tempFile->fileName();
+ // Discard to temporary file to make sure it is closed and no changes are triggered.
+ tempFile = TemporaryFilePtr();
m_fetchedSnippets.push_back(fileName);
// Open editor with title.
Core::IEditor* editor = EditorManager::instance()->openEditor(fileName);