Skip to content

Commit fe4ab80

Browse files
committed
gui: pass object not Selected object to getProperties
Signed-off-by: Peter Gadfort <[email protected]>
1 parent bc31388 commit fe4ab80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/src/gui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,6 @@ int Gui::select(const std::string& type,
504504
if (
505505
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
506506
!reg_filter.match(QString::fromStdString(sel_name)).hasMatch()
507-
508507
#else
509508
!reg_filter.exactMatch(QString::fromStdString(sel_name))
510509
#endif
@@ -516,7 +515,8 @@ int Gui::select(const std::string& type,
516515

517516
if (!attribute.empty()) {
518517
bool is_valid_attribute = false;
519-
Descriptor::Properties properties = descriptor->getProperties(sel);
518+
Descriptor::Properties properties
519+
= descriptor->getProperties(sel.getObject());
520520
if (filterSelectionProperties(
521521
properties, attribute, value, is_valid_attribute)) {
522522
return; // doesn't match the attribute filter

0 commit comments

Comments
 (0)