aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 3623b04..65f9636 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -74,6 +74,11 @@ public:
protected:
void closeEvent(QCloseEvent *event) override;
+ /// Claims Return back for the query bar. Return is bound to open_thread as
+ /// a WindowShortcut, and a shortcut outranks the focused widget, so without
+ /// this the action fires from inside the bar and the query never runs.
+ bool eventFilter(QObject *watched, QEvent *event) override;
+
private slots:
void runCurrentQuery();
void onThreadsReady(const QVector<ThreadSummary> &threads, quint64 generation);