WIP: show properties - use transient selection if nothing else is selected.

This commit is contained in:
Matthias Koefferlein 2020-08-24 22:44:17 +02:00
parent ac10c72df4
commit 6e860361c0
1 changed files with 5 additions and 0 deletions

View File

@ -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;