[PATCH] ticket #412 Saving edits requires to move focus first

Dirk Hohndel dirk at hohndel.org
Tue Mar 18 07:51:14 PDT 2014


Hmm... this still doesn't look like a tab to me...

sorry to be a pain - but the goal is for you to show that you figured
out how to do this right

/D

On Tue, 2014-03-18 at 10:52 +0200, Gehad wrote:
> sorry my bad .
> 
> 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 which is unfriendly this is fixed by losing
> the focus before accepting the changes
> 
> Signed-off-by: Gehad elrobey <gehadelrobey at gmail.com>
> ---
>   qt-ui/maintab.cpp | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
> index 660fc4f..6946d1b 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();




More information about the subsurface mailing list