forked from qt-creator/qt-creator
CppEditor: Fix semantic highlighting after "Save as"
Change-Id: I523735bae9e1a19678d4ab697c1edce2886bedeb Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -260,7 +260,7 @@ CppCompletionAssistProvider *CppEditorSupport::completionAssistProvider() const
|
||||
QSharedPointer<SnapshotUpdater> CppEditorSupport::snapshotUpdater()
|
||||
{
|
||||
QSharedPointer<SnapshotUpdater> updater = m_snapshotUpdater;
|
||||
if (!updater) {
|
||||
if (!updater || updater->fileInEditor() != fileName()) {
|
||||
updater = QSharedPointer<SnapshotUpdater>(new SnapshotUpdater(fileName()));
|
||||
m_snapshotUpdater = updater;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user