From 6e860361c093eae9af272e10fa113a6b66cf4b22 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 24 Aug 2020 22:44:17 +0200 Subject: [PATCH] WIP: show properties - use transient selection if nothing else is selected. --- src/laybasic/laybasic/layEditable.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/laybasic/laybasic/layEditable.cc b/src/laybasic/laybasic/layEditable.cc index e09044dde..0a86a8c3e 100644 --- a/src/laybasic/laybasic/layEditable.cc +++ b/src/laybasic/laybasic/layEditable.cc @@ -627,6 +627,11 @@ Editables::cancel_edits () void Editables::show_properties (QWidget *parent) { + if (selection_size () == 0) { + // try to use the transient selection for the real one + transient_to_selection (); + } + // re-create a new properties dialog if (mp_properties_dialog) { delete mp_properties_dialog;