diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-10-21 22:48:49 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-10-21 22:48:49 -0400 |
commit | 579657c8cb4ecd8a313221e70bdbbc7267f20286 (patch) | |
tree | dff1f966a17b4c6f76dc6a0ce5e0871e3f81386a /src/backend/bookshelfmodel | |
parent | 00bc0a3de99e088902379dcb2905fb1546c7eca2 (diff) |
Imported Upstream version 2.9.2
Diffstat (limited to 'src/backend/bookshelfmodel')
-rw-r--r-- | src/backend/bookshelfmodel/btbookshelftreemodel.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/bookshelfmodel/btbookshelftreemodel.cpp b/src/backend/bookshelfmodel/btbookshelftreemodel.cpp index 3d6008f..0fcd14e 100644 --- a/src/backend/bookshelfmodel/btbookshelftreemodel.cpp +++ b/src/backend/bookshelfmodel/btbookshelftreemodel.cpp @@ -367,6 +367,10 @@ void BtBookshelfTreeModel::resetData() { void BtBookshelfTreeModel::addModule(CSwordModuleInfo *module, bool checked) { if (m_modules.contains(module)) return; + +#if QT_VERSION >= 0x040600 + beginResetModel(); +#endif Grouping g(m_groupingOrder); addModule(module, QModelIndex(), g, checked); @@ -376,7 +380,12 @@ void BtBookshelfTreeModel::addModule(CSwordModuleInfo *module, bool checked) { new modules. As a side effect, all attached views will also reset themselves. */ + +#if QT_VERSION >= 0x040600 + endResetModel(); +#else reset(); +#endif } void BtBookshelfTreeModel::addModule(CSwordModuleInfo *module, |