to fix the patch problem I used emacs to remove all white spaces , also I used git apply check and there is no white spaces errors , I used tabs not spaces with 8 spaces width.
I think this will fix the problem.

Regards and Thanks
Gehadelrobey
>From 0ed4b7b6d1cd3bdce41334d78e3b4e54b1858997 Mon Sep 17 00:00:00 2001
From: Gehad elrobey <gehadelro...@gmail.com>
Date: Wed, 19 Mar 2014 00:04:36 +0200
Subject: [PATCH] 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

Signed-off-by: Gehad elrobey <gehadelro...@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 26a7ef9..9828389 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();
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to