mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
22b8d95d58
commit
69ed0d8393
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue