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

Method cancelImport

app/src/DataModel/Importers/ProtoImporter.cpp:922–928  ·  view source on GitHub ↗

* @brief Clears the parsed message state and notifies QML. */

Source from the content-addressed store, hash-verified

920 * @brief Clears the parsed message state and notifies QML.
921 */
922void DataModel::ProtoImporter::cancelImport()
923{
924 m_messages.clear();
925 m_protoFilePath.clear();
926 Q_EMIT messagesChanged();
927 Q_EMIT fileNameChanged();
928}
929
930/**
931 * @brief Parses the proto file at filePath and emits previewReady on success.

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected