Bug 308461 - Overwriting object with the same name should be possible
Summary: Overwriting object with the same name should be possible
Status: CLOSED FIXED
Alias: None
Product: KEXI
Classification: Applications
Component: General (show other bugs)
Version: 2.6 alpha1
Platform: unspecified All
: NOR wishlist
Target Milestone: 2.6
Assignee: Jarosław Staniek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 20:52 UTC by Jarosław Staniek
Modified: 2012-12-04 20:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
staniek: Usability+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarosław Staniek 2012-10-15 20:52:00 UTC
If name of existing object is picked when saving a new object, the existing object should be removed and replaced by the new one.

Reproducible: Always

Steps to Reproduce:
1. Desing a new object (e.g. table) 
2. Select "Save" and pick name of existing table
Actual Results:  
Kexi warns about existing table and rejects saving.

Expected Results:  
Kexi warns about existing table, and after confirmation the existing object is removed and replaced.
Comment 1 Jarosław Staniek 2012-10-17 08:03:51 UTC
Git commit 8a2624aaadd63cefa8955d58c225bef760f8b671 by Jaroslaw Staniek.
Committed on 15/10/2012 at 01:49.
Pushed by staniek into branch 'master'.

Overwriting object with the same name is now possible
REVIEW:106903

M  +4    -2    kexi/core/KexiMainWindowIface.h
M  +9    -2    kexi/core/KexiView.cpp
M  +10   -1    kexi/core/KexiView.h
M  +12   -3    kexi/core/KexiWindow.cpp
M  +1    -2    kexi/core/KexiWindow.h
M  +7    -0    kexi/core/kexiproject.cpp
M  +0    -2    kexi/main/CMakeLists.txt
M  +18   -53   kexi/main/KexiMainWindow.cpp
M  +2    -1    kexi/main/KexiMainWindow.h
D  +0    -115  kexi/main/kexinamedialog.cpp
D  +0    -61   kexi/main/kexinamedialog.h
M  +4    -2    kexi/plugins/autoforms/KexiAutoFormDesignView.cpp
M  +3    -1    kexi/plugins/autoforms/KexiAutoFormDesignView.h
M  +4    -3    kexi/plugins/forms/kexiformview.cpp
M  +3    -1    kexi/plugins/forms/kexiformview.h
M  +5    -5    kexi/plugins/importexport/csv/kexicsvimportdialog.cpp
M  +6    -1    kexi/plugins/queries/kexiquerydesignerguieditor.cpp
M  +3    -1    kexi/plugins/queries/kexiquerydesignerguieditor.h
M  +7    -2    kexi/plugins/queries/kexiquerydesignersql.cpp
M  +3    -1    kexi/plugins/queries/kexiquerydesignersql.h
M  +5    -3    kexi/plugins/queries/kexiqueryview.cpp
M  +3    -1    kexi/plugins/queries/kexiqueryview.h
M  +4    -2    kexi/plugins/reports/kexireportdesignview.cpp
M  +3    -1    kexi/plugins/reports/kexireportdesignview.h
M  +4    -2    kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
M  +3    -1    kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.h
M  +9    -3    kexi/plugins/tables/kexitabledesignerview.cpp
M  +3    -1    kexi/plugins/tables/kexitabledesignerview.h
M  +2    -0    kexi/widget/CMakeLists.txt
A  +201  -0    kexi/widget/KexiNameDialog.cpp     [License: LGPL (v2+)]
A  +81   -0    kexi/widget/KexiNameDialog.h     [License: LGPL (v2+)]
R  +3    -4    kexi/widget/KexiNameWidget.cpp [from: kexi/main/kexinamewidget.cpp - 098% similarity]
R  +4    -2    kexi/widget/KexiNameWidget.h [from: kexi/main/kexinamewidget.h - 097% similarity]
M  +10   -10   libs/db/connection.cpp
M  +1    -1    libs/db/connection.h
M  +1    -1    libs/db/drivers/sqlite/sqliteconnection.cpp
M  +2    -2    libs/db/utils.cpp

http://commits.kde.org/calligra/8a2624aaadd63cefa8955d58c225bef760f8b671
Comment 2 Jarosław Staniek 2012-10-31 11:29:43 UTC
Git commit 112f193183af0c757a9a69df408035ed0493755d by Jaroslaw Staniek.
Committed on 15/10/2012 at 01:49.
Pushed by staniek into branch 'kexi-altertable-staniek'.

Overwriting object with the same name is now possible
REVIEW:106903

M  +4    -2    kexi/core/KexiMainWindowIface.h
M  +9    -2    kexi/core/KexiView.cpp
M  +10   -1    kexi/core/KexiView.h
M  +12   -3    kexi/core/KexiWindow.cpp
M  +1    -2    kexi/core/KexiWindow.h
M  +7    -0    kexi/core/kexiproject.cpp
M  +0    -2    kexi/main/CMakeLists.txt
M  +18   -53   kexi/main/KexiMainWindow.cpp
M  +2    -1    kexi/main/KexiMainWindow.h
D  +0    -115  kexi/main/kexinamedialog.cpp
D  +0    -61   kexi/main/kexinamedialog.h
M  +4    -2    kexi/plugins/autoforms/KexiAutoFormDesignView.cpp
M  +3    -1    kexi/plugins/autoforms/KexiAutoFormDesignView.h
M  +4    -3    kexi/plugins/forms/kexiformview.cpp
M  +3    -1    kexi/plugins/forms/kexiformview.h
M  +5    -5    kexi/plugins/importexport/csv/kexicsvimportdialog.cpp
M  +6    -1    kexi/plugins/queries/kexiquerydesignerguieditor.cpp
M  +3    -1    kexi/plugins/queries/kexiquerydesignerguieditor.h
M  +7    -2    kexi/plugins/queries/kexiquerydesignersql.cpp
M  +3    -1    kexi/plugins/queries/kexiquerydesignersql.h
M  +5    -3    kexi/plugins/queries/kexiqueryview.cpp
M  +3    -1    kexi/plugins/queries/kexiqueryview.h
M  +4    -2    kexi/plugins/reports/kexireportdesignview.cpp
M  +3    -1    kexi/plugins/reports/kexireportdesignview.h
M  +4    -2    kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
M  +3    -1    kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.h
M  +9    -3    kexi/plugins/tables/kexitabledesignerview.cpp
M  +3    -1    kexi/plugins/tables/kexitabledesignerview.h
M  +2    -0    kexi/widget/CMakeLists.txt
A  +201  -0    kexi/widget/KexiNameDialog.cpp     [License: LGPL (v2+)]
A  +81   -0    kexi/widget/KexiNameDialog.h     [License: LGPL (v2+)]
R  +3    -4    kexi/widget/KexiNameWidget.cpp [from: kexi/main/kexinamewidget.cpp - 098% similarity]
R  +4    -2    kexi/widget/KexiNameWidget.h [from: kexi/main/kexinamewidget.h - 097% similarity]
M  +10   -10   libs/db/connection.cpp
M  +1    -1    libs/db/connection.h
M  +1    -1    libs/db/drivers/sqlite/sqliteconnection.cpp
M  +2    -2    libs/db/utils.cpp

http://commits.kde.org/calligra/112f193183af0c757a9a69df408035ed0493755d