Commit 81a99c39 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

QuickDialog: removeEventFilters

BUG: 457670
parent 18dc91a1
Pipeline #215248 passed with stage
in 48 minutes and 44 seconds
......@@ -49,6 +49,12 @@ QuickDialog::QuickDialog(QWidget *parent, QWidget *mainWindow)
setFocus();
}
QuickDialog::~QuickDialog()
{
m_treeView.removeEventFilter(this);
m_lineEdit.removeEventFilter(this);
}
bool QuickDialog::eventFilter(QObject *obj, QEvent *event)
{
// catch key presses + shortcut overrides to allow to have ESC as application wide shortcut, too, see bug 409856
......
......@@ -25,6 +25,7 @@ class KATE_PRIVATE_EXPORT QuickDialog : public QMenu
Q_OBJECT
public:
QuickDialog(QWidget *parent, QWidget *mainWindow);
~QuickDialog();
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment