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>
This commit is contained in:
Gehad 2014-03-19 07:24:37 +02:00 committed by Dirk Hohndel
parent 1768b08dc0
commit f2238300ef

View file

@ -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();