mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Finish main part of the recent refactoring effort
This finally gets rid of the DBBrowserObject class entirely and moves all its functionality to the newer classes in the sqlb namespace. I'm still not entirely happy with this but at least things should be a little more consistent now.
This commit is contained in:
@@ -81,9 +81,9 @@ ForeignKeyEditorDelegate::ForeignKeyEditorDelegate(const DBBrowserDB& db, sqlb::
|
||||
{
|
||||
const auto objects = m_db.getBrowsableObjects();
|
||||
for (auto& obj : objects) {
|
||||
if (obj.gettype() == sqlb::Object::Types::Table) {
|
||||
QString tableName = obj.object->name();
|
||||
m_tablesIds.insert(tableName, obj.object.dynamicCast<sqlb::Table>()->fieldNames());
|
||||
if (obj->type() == sqlb::Object::Types::Table) {
|
||||
QString tableName = obj->name();
|
||||
m_tablesIds.insert(tableName, obj.dynamicCast<sqlb::Table>()->fieldNames());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user