Pass Escape key event if search text is empty

Was blocking Esc from closing Attach window.
This commit is contained in:
dad 2023-08-29 14:37:16 -06:00
parent 48d81226ed
commit d68e1d44a8

View File

@ -355,7 +355,12 @@ bool SearchListView::eventFilter(QObject* obj, QEvent* event)
return true;
}
if(key == Qt::Key_Escape)
clearFilter();
{
if(mFilterText.isEmpty())
return QWidget::eventFilter(obj, event);
else
clearFilter();
}
if(!mSearchBox->text().isEmpty())
{
switch(key)