mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
No need to search views for foreign keys
This simplifies and optimises the foreign key check when editing a table field a little.
This commit is contained in:
@@ -231,7 +231,7 @@ void EditTableDialog::itemChanged(QTreeWidgetItem *item, int column)
|
||||
// When editing an exiting table, check if any foreign keys would cause trouble in case this name is edited
|
||||
if(!m_bNewTable)
|
||||
{
|
||||
foreach(const DBBrowserObject& fkobj, pdb->getBrowsableObjects())
|
||||
foreach(const DBBrowserObject& fkobj, pdb->objMap.values("table"))
|
||||
{
|
||||
foreach(const sqlb::FieldPtr& fkfield, fkobj.table.fields())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user