diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-19 15:00:53 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-19 07:28:24 -0800 |
commit | 69ed0d8393868dd4953d1fd906a83258408d7639 (patch) | |
tree | cb7921da56fdda3c7b343cf05be18389576f1d4f /qt-ui | |
parent | 22b8d95d58f8f4f72b278eaa8a586edd1a318f67 (diff) | |
download | subsurface-69ed0d8393868dd4953d1fd906a83258408d7639.tar.gz |
Fix a missing parentheses warning
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |