diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-11-15 21:31:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-09 12:41:11 -0700 |
commit | edeaf7fa572a20a493fee2026384e418f68721e2 (patch) | |
tree | 96dd405a5144abcb74aba914f6647e2a62f5eda3 /mobile-widgets | |
parent | b382445e59c97e93ef53e0e6e378b8ec11f12a27 (diff) | |
download | subsurface-edeaf7fa572a20a493fee2026384e418f68721e2.tar.gz |
mobile: remove collapsed model that we no longer use
The dive list now uses the mobile list model.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index dffdc9cc5..78bdb84d8 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -299,7 +299,6 @@ void QMLManager::applicationStateChanged(Qt::ApplicationState state) void QMLManager::openLocalThenRemote(QString url) { - CollapsedDiveListSortModel::instance()->setSourceModel(nullptr); DiveListModel::instance()->clear(); setNotificationText(tr("Open local dive data file")); QByteArray fileNamePrt = QFile::encodeName(url); @@ -338,8 +337,6 @@ void QMLManager::openLocalThenRemote(QString url) qPrefPartialPressureGas::set_po2(git_prefs.pp_graphs.po2); process_loaded_dives(); DiveListModel::instance()->reload(); - CollapsedDiveListSortModel::instance()->setSourceModel(DiveListModel::instance()); - CollapsedDiveListSortModel::instance()->updateFilterState(); appendTextToLog(QStringLiteral("%1 dives loaded from cache").arg(dive_table.nr)); setNotificationText(tr("%1 dives loaded from local dive data file").arg(dive_table.nr)); } @@ -1420,8 +1417,8 @@ void QMLManager::selectDive(int id) } if (amount_selected == 0) qWarning("QManager::selectDive() called with unknown id"); - else - CollapsedDiveListSortModel::instance()->updateSelectionState(); + // else + // FIXME: CollapsedDiveListSortModel::instance()->updateSelectionState(); } void QMLManager::deleteDive(int id) @@ -2147,7 +2144,6 @@ void QMLManager::setFilter(const QString filterText, int index) case 2: mode = FilterData::Mode::TAGS; break; } DiveListSortModel::instance()->setFilter(filterText, mode); - CollapsedDiveListSortModel::instance()->updateFilterState(); } void QMLManager::setShowNonDiveComputers(bool show) |