From 8c6205fc0d43af849769c11f8a8fb79396895ecc Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 1 Apr 2019 21:07:51 +0200 Subject: Undo: on save remove focus from active fields The editing of a dive field is only performed when focus is removed from the field. On pressing CTRL-s, the changes in the currently active field were therefore not saved. Remove the focus from all fields to trigger an edit command yand thus ensure that all changes are saved. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.h | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/tab-widgets/maintab.h') diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index 59503fa06..9968472c9 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -53,6 +53,7 @@ public: void updateCoordinatesText(qreal lat, qreal lon); void refreshDisplayedDiveSite(); void nextInputField(QKeyEvent *event); + void stealFocus(); signals: void diveSiteChanged(); -- cgit v1.2.3-70-g09d2