Browse Source

Projucer: Fix open documents not closing when no callback is provided

v6.1.6
ed 4 years ago
parent
commit
95b1dce49c
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      extras/Projucer/Source/CodeEditor/jucer_OpenDocumentManager.cpp

+ 6
- 2
extras/Projucer/Source/CodeEditor/jucer_OpenDocumentManager.cpp View File

@@ -254,15 +254,19 @@ void OpenDocumentManager::closeDocumentAsync (Document* doc, SaveIfNeeded saveIf
return; return;
} }
auto closed = parent->closeDocumentWithoutSaving (doc);
if (callback != nullptr) if (callback != nullptr)
callback (parent->closeDocumentWithoutSaving (doc));
callback (closed);
}); });
return; return;
} }
auto closed = closeDocumentWithoutSaving (doc);
if (callback != nullptr) if (callback != nullptr)
callback (closeDocumentWithoutSaving (doc));
callback (closed);
} }
void OpenDocumentManager::closeFileWithoutSaving (const File& f) void OpenDocumentManager::closeFileWithoutSaving (const File& f)


Loading…
Cancel
Save