diff options
author | Gehad <gehadelrobey@gmail.com> | 2014-03-19 07:24:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-19 09:27:04 -0700 |
commit | f2238300ef86afe88d35b13ef48c4367c274d144 (patch) | |
tree | c8d6e88ff0d7e30b3f91447a20f6118426988dc7 /qt-ui | |
parent | 1768b08dc0e6433c7b42062103c104f42accdf06 (diff) | |
download | subsurface-f2238300ef86afe88d35b13ef48c4367c274d144.tar.gz |
Saving edits requires to move focus first
After editing values in cylinders or weights hitting save will not save
the changes to save the edit one must move the focus to a different
field first this is fixed by losing the focus before saving the changes
Fixes #412
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 26a7ef98c..98283891c 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -585,6 +585,7 @@ void MainTab::reload() void MainTab::acceptChanges() { MainWindow::instance()->dive_list()->setEnabled(true); + MainWindow::instance()->setFocus(); tabBar()->setTabIcon(0, QIcon()); // Notes tabBar()->setTabIcon(1, QIcon()); // Equipment hideMessage(); |