summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-08-18 15:38:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-08-18 15:39:54 +0200
commit3e31a770b5aa882c4fccdea65c7f8504beab032a (patch)
tree02d290de1eb4d9157cfc3395f4ca3d6428c5a228
parent69fb75b627d478796f95518a66353a543d588fe3 (diff)
downloadqt-creator-3e31a770b5aa882c4fccdea65c7f8504beab032a.tar.gz
CodePaster: Do not show popup about modified files on Windows.
QTemporaryFile destructor causes a file changed signal due to it holding on to it. Reviewed-by: dt Task-number: QTCREATORBUG-2083
-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);