From dc6f962292f2e9b269652551a59be67d40df0031 Mon Sep 17 00:00:00 2001 From: garak Date: Tue, 6 Aug 2019 22:10:22 -0400 Subject: [PATCH] silence warnings --- src/ui/montabwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/montabwidget.cpp b/src/ui/montabwidget.cpp index e90c121e..2cdc2eff 100644 --- a/src/ui/montabwidget.cpp +++ b/src/ui/montabwidget.cpp @@ -8,7 +8,7 @@ MonTabWidget::MonTabWidget(Project *project, QWidget *parent) : QTabWidget(paren installEventFilter(this); } -bool MonTabWidget::eventFilter(QObject *object, QEvent *event) { +bool MonTabWidget::eventFilter(QObject *, QEvent *event) { // Press right mouse button to activate tab. if (event->type() == QEvent::MouseButtonPress && static_cast(event)->button() == Qt::RightButton) { @@ -18,6 +18,7 @@ bool MonTabWidget::eventFilter(QObject *object, QEvent *event) { askActivateTab(tabIndex, eventPos); } } + return false; } void MonTabWidget::populate() {