From 69ed0d8393868dd4953d1fd906a83258408d7639 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 19 Dec 2013 15:00:53 +0200 Subject: Fix a missing parentheses warning Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index b2185fdb4..00498f549 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -294,10 +294,10 @@ bool MainTab::eventFilter(QObject* object, QEvent* event) // MouseButtonPress in any widget (not all will ever get this), KeyPress in the dateTimeEdit, // FocusIn for the starWidgets or RequestSoftwareInputPanel for tagWidget start the editing if (isEnabled() && editMode == NONE && - (event->type() == QEvent::MouseButtonPress) || + ((event->type() == QEvent::MouseButtonPress) || (event->type() == QEvent::KeyPress && object == ui.dateTimeEdit) || (event->type() == QEvent::FocusIn && (object == ui.rating || object == ui.visibility)) || - (event->type() == QEvent::RequestSoftwareInputPanel && object == ui.tagWidget)) { + (event->type() == QEvent::RequestSoftwareInputPanel && object == ui.tagWidget))) { tabBar()->setTabIcon(currentIndex(), QIcon(":warning")); enableEdition(); } -- cgit v1.2.3-70-g09d2