Summary: | No warning when going to Design View and have pending record changes in Data | ||
---|---|---|---|
Product: | [Applications] KEXI | Reporter: | Dimitrios T Tanis <dimitrios.tanis> |
Component: | Forms | Assignee: | Jarosław Staniek <staniek> |
Status: | CLOSED FIXED | ||
Severity: | major | ||
Priority: | NOR | ||
Version: | 2.4 alpha3 (Calligra 2.4 alpha3) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Dimitrios T Tanis
2011-07-24 20:39:52 UTC
Major issue indeed. Git commit 5b1b194ffd47521babab85ac3d33a89d0fff2309 by Jaroslaw Staniek. Committed on 04/08/2011 at 00:40. Pushed by staniek into branch 'master'. Show confirmation when going to Design and have changes in table or form BUG:278417 M +30 -1 kexi/core/KexiView.h M +16 -1 kexi/core/KexiView.cpp M +1 -1 kexi/widget/tableview/kexidataawareobjectiface.h M +1 -1 kexi/widget/kexidatatable.h M +16 -2 kexi/widget/kexidataawareview.h M +29 -6 kexi/widget/kexidataawareview.cpp M +27 -1 kexi/core/KexiWindow.cpp M +5 -0 kexi/doc/dev/CHANGELOG-Kexi-js M +3 -3 kexi/widget/tableview/kexidataawareobjectiface.cpp M +1 -1 kexi/core/KexiWindow.h http://commits.kde.org/calligra/5b1b194ffd47521babab85ac3d33a89d0fff2309 OK, please test. Ok, Behaviour is as expected now. However, when editing a field (both in table and form) and deleting changes made, there is no confirmation dialog. This behaviour may be confusing. Before switching, how is it determined if the dialog should be displayed, with data comparison or a dirty bit set on changed fields? I suspect a dirty flag, but this seems weird because, Kexi seems clever enough to find out that although a field is dirty, changes are reverted and thus no dialog is displayed. However Save/Cancel record buttons are enabled even in this case. So I believe that we should set a homogenous condition. Having a dirty field SHOULD or NOT prompt to save changes, even they are reverted before saving. This should apply to both the confirmation dialog AND the Save/Cancel record buttons. Thanks for extra checks, Dimitros. We used 'field's value comparison' function, the same that is used on row saving to recognize if the value has really been changed. Indeed save/cancel actions can be updated using the same function, so I am reopening the bug. Git commit 7d990d093c95c75a3674cb85120e9faf5035a1fb by Jaroslaw Staniek. Committed on 12/08/2011 at 22:35. Pushed by staniek into branch 'kexi-modern_menu-staniek'. Disable "Save Record Changes" action when user cancels editing General *Cleanups in API of the data-aware view *Disable "Save Record Changes" action when user cancels editing or reverts edited text to the original value. "Cancel Record Changes" action is not disabled though, so user is still able to exit from record editing mode. BUG:278417 M +1 -0 kexi/widget/tableview/kexiinputtableedit.h M +22 -8 kexi/widget/tableview/kexitableview.cpp M +29 -6 kexi/widget/tableview/kexidataawareobjectiface.h M +27 -0 kexi/kexidb/roweditbuffer.cpp M +2 -0 kexi/widget/kexidataawareview.h M +3 -3 kexi/plugins/forms/kexiformscrollview.cpp M +9 -0 kexi/kexidb/roweditbuffer.h M +20 -6 kexi/widget/kexidataawareview.cpp M +13 -2 kexi/widget/tableview/kexitableview.h M +3 -2 kexi/plugins/forms/kexiformscrollview.h M +6 -0 kexi/doc/dev/CHANGELOG-Kexi-js M +12 -1 kexi/widget/tableview/kexidataawareobjectiface.cpp M +5 -0 kexi/widget/tableview/kexibooltableedit.cpp M +8 -0 kexi/widget/tableview/kexiinputtableedit.cpp http://commits.kde.org/calligra/7d990d093c95c75a3674cb85120e9faf5035a1fb Git commit e3db10e1031b1a4f8dfb372b6b1069b5a6d2b951 by Jaroslaw Staniek. Committed on 12/08/2011 at 22:35. Pushed by staniek into branch 'master'. Disable "Save Record Changes" action when user cancels editing General *Cleanups in API of the data-aware view *Disable "Save Record Changes" action when user cancels editing or reverts edited text to the original value. "Cancel Record Changes" action is not disabled though, so user is still able to exit from record editing mode. BUG:278417 M +1 -0 kexi/widget/tableview/kexiinputtableedit.h M +22 -8 kexi/widget/tableview/kexitableview.cpp M +29 -6 kexi/widget/tableview/kexidataawareobjectiface.h M +27 -0 kexi/kexidb/roweditbuffer.cpp M +2 -0 kexi/widget/kexidataawareview.h M +3 -3 kexi/plugins/forms/kexiformscrollview.cpp M +9 -0 kexi/kexidb/roweditbuffer.h M +20 -6 kexi/widget/kexidataawareview.cpp M +13 -2 kexi/widget/tableview/kexitableview.h M +3 -2 kexi/plugins/forms/kexiformscrollview.h M +6 -0 kexi/doc/dev/CHANGELOG-Kexi-js M +12 -1 kexi/widget/tableview/kexidataawareobjectiface.cpp M +5 -0 kexi/widget/tableview/kexibooltableedit.cpp M +8 -0 kexi/widget/tableview/kexiinputtableedit.cpp http://commits.kde.org/calligra/e3db10e1031b1a4f8dfb372b6b1069b5a6d2b951 Git commit b51bc33ae81572b0f9fde8ecfc5a943afb43344e by Jaroslaw Staniek. Committed on 12/08/2011 at 22:41. Pushed by staniek into branch 'master'. Show confirmation when going to Design and have changes in table or form BUG:278417 Conflicts: kexi/doc/dev/CHANGELOG-Kexi-js M +0 -4 kexi/doc/dev/CHANGELOG-Kexi-js http://commits.kde.org/calligra/b51bc33ae81572b0f9fde8ecfc5a943afb43344e Git commit 520d373bff309678d06f789a515ffbe163456a9f by Inge Wallin, on behalf of Jaroslaw Staniek. Committed on 12/08/2011 at 22:35. Pushed by ingwa into branch 'nondestructive-unavail-leinir'. Disable "Save Record Changes" action when user cancels editing General *Cleanups in API of the data-aware view *Disable "Save Record Changes" action when user cancels editing or reverts edited text to the original value. "Cancel Record Changes" action is not disabled though, so user is still able to exit from record editing mode. BUG:278417 M +1 -0 kexi/widget/tableview/kexiinputtableedit.h M +22 -8 kexi/widget/tableview/kexitableview.cpp M +29 -6 kexi/widget/tableview/kexidataawareobjectiface.h M +27 -0 kexi/kexidb/roweditbuffer.cpp M +2 -0 kexi/widget/kexidataawareview.h M +3 -3 kexi/plugins/forms/kexiformscrollview.cpp M +9 -0 kexi/kexidb/roweditbuffer.h M +20 -6 kexi/widget/kexidataawareview.cpp M +13 -2 kexi/widget/tableview/kexitableview.h M +3 -2 kexi/plugins/forms/kexiformscrollview.h M +6 -0 kexi/doc/dev/CHANGELOG-Kexi-js M +12 -1 kexi/widget/tableview/kexidataawareobjectiface.cpp M +5 -0 kexi/widget/tableview/kexibooltableedit.cpp M +8 -0 kexi/widget/tableview/kexiinputtableedit.cpp http://commits.kde.org/calligra/520d373bff309678d06f789a515ffbe163456a9f Git commit 7ca866c19e25485f152e74d9fde236b17305ce3f by Inge Wallin, on behalf of Jaroslaw Staniek. Committed on 12/08/2011 at 22:41. Pushed by ingwa into branch 'nondestructive-unavail-leinir'. Show confirmation when going to Design and have changes in table or form BUG:278417 Conflicts: kexi/doc/dev/CHANGELOG-Kexi-js M +0 -4 kexi/doc/dev/CHANGELOG-Kexi-js http://commits.kde.org/calligra/7ca866c19e25485f152e74d9fde236b17305ce3f |