Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/models/models.cpp
Context not available. | |||||
234 | void Models::fileClosed() | 234 | void Models::fileClosed() | ||
---|---|---|---|---|---|
235 | { | 235 | { | ||
236 | // TODO: make this cleaner in the future, for now just clear the accounts model before the file is closed | 236 | // TODO: make this cleaner in the future, for now just clear the accounts model before the file is closed | ||
237 | // to avoid any uncaught KMyMoneyExceptions while using the account objects from this model after the file has been closed | 237 | // to avoid any uncaught Kstd::exceptions while using the account objects from this model after the file has been closed | ||
238 | accountsModel()->removeRows(0, accountsModel()->rowCount()); | 238 | accountsModel()->removeRows(0, accountsModel()->rowCount()); | ||
239 | institutionsModel()->removeRows(0, institutionsModel()->rowCount()); | 239 | institutionsModel()->removeRows(0, institutionsModel()->rowCount()); | ||
240 | #ifdef ENABLE_UNFINISHEDFEATURES | 240 | #ifdef ENABLE_UNFINISHEDFEATURES | ||
Context not available. |