src/documentmanager.cpp

changeset 374
75efc3ba5a56
parent 338
719b909a7d2b
child 380
16f6717a218b
--- a/src/documentmanager.cpp	Mon Apr 10 14:46:36 2023 +0300
+++ b/src/documentmanager.cpp	Tue Apr 11 11:11:28 2023 +0300
@@ -364,7 +364,7 @@
 	for (const QString& line : model->toPlainText().split("\n")) {
 		const opt<ParsedLine> parsed = parse(line);
 		if (parsed.has_value() and std::holds_alternative<LineType1>(*parsed)) {
-			result.insert(std::get<LineType1>(*parsed).value.name);
+			result.insert(std::get<LineType1>(*parsed).value.element.name);
 		}
 	}
 	return result;

mercurial