Fix a missing parentheses warning

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2013-12-19 15:00:53 +02:00 committed by Dirk Hohndel
parent 22b8d95d58
commit 69ed0d8393

View file

@ -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();
}