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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user