src/layers/edittools.cpp

changeset 383
530d23cd4e97
parent 379
8d88adffb779
--- a/src/layers/edittools.cpp	Sat Jun 10 17:26:32 2023 +0300
+++ b/src/layers/edittools.cpp	Thu Jun 15 16:18:03 2023 +0300
@@ -293,7 +293,7 @@
 	case editing_mode_e::select:
 		if (event->button() == Qt::LeftButton) {
 			const std::int32_t highlighted = this->renderer->pick(event->pos());
-			Q_EMIT this->select({highlighted}, false);
+			Q_EMIT this->modelAction(SelectInModel{static_cast<size_t>(highlighted)});
 		}
 		break;
 	case editing_mode_e::draw:

mercurial