Commit 3e31a770 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

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
parent 69fb75b6
......@@ -351,6 +351,8 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
// Keep the file and store in list of files to be removed.
const QString fileName = tempFile->fileName();
// Discard to temporary file to make sure it is closed and no changes are triggered.
tempFile = TemporaryFilePtr();
// Open editor with title.
Core::IEditor* editor = EditorManager::instance()->openEditor(fileName);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment