mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Complete GPS coordinates on location focusout.
Introduce on_location_editingFinished() and move the GPS coordinates completion logic there. This simplifies acceptChanges(), but replaces the clever code for multidive completion by something a little more straightforward. Note the call to on_location_editingFinished() from acceptChanges(); without it, completion only happens *after* the dive has been saved. [Dirk Hohndel: trivial merge, minor changes for consistency] Signed-off-by: Gaetan Bisson <bisson@archlinux.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a2f47485d4
commit
35121e1147
2 changed files with 33 additions and 52 deletions
|
@ -60,6 +60,7 @@ slots:
|
|||
void acceptChanges();
|
||||
void rejectChanges();
|
||||
void on_location_textChanged(const QString &text);
|
||||
void on_location_editingFinished();
|
||||
void on_coordinates_textChanged(const QString &text);
|
||||
void on_divemaster_textChanged();
|
||||
void on_buddy_textChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue