forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user