From 6a58712270c15488ddb799fbee8bc9eef85054be Mon Sep 17 00:00:00 2001 From: Sergey Starosek Date: Sun, 19 Jan 2014 19:36:51 +0200 Subject: Enter dive edit mode on divemaster field focus Signed-off-by: Sergey Starosek Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index e8df29368..fc836f40b 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -304,7 +304,7 @@ bool MainTab::eventFilter(QObject* object, QEvent* event) // FocusIn for the starWidgets or RequestSoftwareInputPanel for tagWidget start the editing if ((event->type() == QEvent::MouseButtonPress) || (event->type() == QEvent::KeyPress && object == ui.dateTimeEdit) || - (event->type() == QEvent::FocusIn && (object == ui.rating || object == ui.visibility || object == ui.buddy || object == ui.tagWidget))) { + (event->type() == QEvent::FocusIn && (object == ui.rating || object == ui.visibility || object == ui.buddy || object == ui.tagWidget || object || ui.divemaster))) { tabBar()->setTabIcon(currentIndex(), QIcon(":warning")); enableEdition(); } -- cgit v1.2.3-70-g09d2