[PATCH 3/8] Maintab: fix a warning about missing parentheses

Lubomir I. Ivanov neolit123 at gmail.com
Wed Dec 18 14:47:01 UTC 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 qt-ui/maintab.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index b2185fd..00498f5 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();
 	}
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list