MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / closeDatabase

Method closeDatabase

app/src/Sessions/DatabaseManager.cpp:460–470  ·  view source on GitHub ↗

* @brief Dispatches an async close to the worker; main-thread cache clears on reply. */

Source from the content-addressed store, hash-verified

458 * @brief Dispatches an async close to the worker; main-thread cache clears on reply.
459 */
460void Sessions::DatabaseManager::closeDatabase(bool clearSavedPath)
461{
462 if (m_worker)
463 m_worker->requestCancel();
464
465 if (clearSavedPath)
466 m_settings.remove("Sessions/LastDatabase");
467
468 if (m_worker)
469 QMetaObject::invokeMethod(m_worker, "closeDatabase", Qt::QueuedConnection);
470}
471
472//--------------------------------------------------------------------------------------------------
473// Lock / unlock

Callers

nothing calls this directly

Calls 2

requestCancelMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected