Changeset View
Changeset View
Standalone View
Standalone View
src/KDbConnection.cpp
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Line(s) | 265 | { | |||
---|---|---|---|---|---|
269 | } else { | 269 | } else { | ||
270 | m_tables.insert(tableSchema->id(), tableSchema); | 270 | m_tables.insert(tableSchema->id(), tableSchema); | ||
271 | } | 271 | } | ||
272 | m_tablesByName.insert(tableSchema->name(), tableSchema); | 272 | m_tablesByName.insert(tableSchema->name(), tableSchema); | ||
273 | } | 273 | } | ||
274 | 274 | | |||
275 | void KDbConnectionPrivate::removeTable(const KDbTableSchema& tableSchema) | 275 | void KDbConnectionPrivate::removeTable(const KDbTableSchema& tableSchema) | ||
276 | { | 276 | { | ||
277 | KDbTableSchemaChangeListener::unregisterForChanges(conn, &tableSchema); | ||||
277 | m_tablesByName.remove(tableSchema.name()); | 278 | m_tablesByName.remove(tableSchema.name()); | ||
278 | KDbTableSchema *toDelete = m_tables.take(tableSchema.id()); | 279 | KDbTableSchema *toDelete = m_tables.take(tableSchema.id()); | ||
279 | delete toDelete; | 280 | delete toDelete; | ||
280 | } | 281 | } | ||
281 | 282 | | |||
282 | void KDbConnectionPrivate::takeTable(KDbTableSchema* tableSchema) | 283 | void KDbConnectionPrivate::takeTable(KDbTableSchema* tableSchema) | ||
283 | { | 284 | { | ||
284 | if (m_tables.isEmpty()) { | 285 | if (m_tables.isEmpty()) { | ||
▲ Show 20 Lines • Show All 3205 Lines • Show Last 20 Lines |