Changeset View
Changeset View
Standalone View
Standalone View
src/widget/navigator/KexiProjectNavigator.cpp
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Line(s) | 237 | //! @todo some of these actions can be supported once we deliver ACLs... | |||
---|---|---|---|---|---|
250 | } | 250 | } | ||
251 | slotSelectionChanged(QModelIndex()); | 251 | slotSelectionChanged(QModelIndex()); | ||
252 | } | 252 | } | ||
253 | 253 | | |||
254 | void KexiProjectNavigator::setProject(KexiProject* prj, const QString& itemsPartClass, | 254 | void KexiProjectNavigator::setProject(KexiProject* prj, const QString& itemsPartClass, | ||
255 | QString* partManagerErrorMessages, bool addAsSearchableModel) | 255 | QString* partManagerErrorMessages, bool addAsSearchableModel) | ||
256 | { | 256 | { | ||
257 | d->itemsPluginId = itemsPartClass; | 257 | d->itemsPluginId = itemsPartClass; | ||
258 | 258 | KexiMainWindowIface::global()->removeSearchableModel(d->model); // before model changes | |||
259 | d->model->setProject(prj, itemsPartClass, partManagerErrorMessages); | 259 | d->model->setProject(prj, itemsPartClass, partManagerErrorMessages); | ||
260 | 260 | | |||
261 | if (addAsSearchableModel) { | 261 | if (addAsSearchableModel) { | ||
262 | KexiMainWindowIface::global()->addSearchableModel(d->model); | 262 | KexiMainWindowIface::global()->addSearchableModel(d->model); | ||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | d->list->expandAll(); | 265 | d->list->expandAll(); | ||
266 | d->list->setRootIsDecorated(false); | 266 | d->list->setRootIsDecorated(false); | ||
▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines |