Gui: Property editor combobox fix not popping up if the user canceled (#21688)

* Gui: Property editor combobox fix not popping up if the user canceled the popup and then try to open it again

fixes #21675

* Update src/Gui/propertyeditor/PropertyItemDelegate.cpp

---------

Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
Alfredo Monclus
2025-06-02 04:40:08 -06:00
committed by GitHub
parent d7bdb2c19a
commit e456b5671b

View File

@@ -139,6 +139,11 @@ bool PropertyItemDelegate::eventFilter(QObject *o, QEvent *ev)
}
else if (ev->type() == QEvent::FocusOut) {
auto parentEditor = qobject_cast<PropertyEditor*>(this->parent());
if (auto* comboBox = qobject_cast<QComboBox*>(o)) {
if (parentEditor && parentEditor->activeEditor == comboBox) {
parentEditor->activeEditor = nullptr;
}
}
auto widget = qobject_cast<QWidget*>(o);
if (widget && parentEditor && parentEditor->activeEditor
&& widget != parentEditor->activeEditor) {