mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 11:31:08 +02:00
WIP: show properties - use transient selection if nothing else is selected.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user