summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2014-01-15 22:36:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 09:34:45 +0700
commitdca59f06d70bd36d10704a08f8444152a82e99b8 (patch)
treeffae89e73189e52d98289b93b44180499377d169 /qt-ui/maintab.cpp
parent4659b594f09d30e77173a9fe329155be0c1dc1c7 (diff)
downloadsubsurface-dca59f06d70bd36d10704a08f8444152a82e99b8.tar.gz
Enter dive edit mode on buddy field focus
Seems it's related to bug #390. Not sure whether this fix is correct. See #390 Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 81e820a71..21910643b 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -306,7 +306,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)) ||
+ (event->type() == QEvent::FocusIn && (object == ui.rating || object == ui.visibility || object == ui.buddy)) ||
(event->type() == QEvent::RequestSoftwareInputPanel && object == ui.tagWidget)) {
tabBar()->setTabIcon(currentIndex(), QIcon(":warning"));
enableEdition();