history: fix loading
History collection is loaded before starting the UI
Issue: #80833
Change-Id: I96d7aa2a7e92f92ee1bcd4ea8d16c9a780d68fba
diff --git a/src/HistoryVC.mm b/src/HistoryVC.mm
index b62dc8a..028f398 100644
--- a/src/HistoryVC.mm
+++ b/src/HistoryVC.mm
@@ -18,13 +18,15 @@
*/
#import "HistoryVC.h"
-#import <categorizedhistorymodel.h>
+//Qt
#import <QSortFilterProxyModel>
+
+//LRC
+#import <categorizedhistorymodel.h>
#import <callmodel.h>
#import <call.h>
#import <person.h>
#import <contactmethod.h>
-#import <localhistorycollection.h>
#import "QNSTreeController.h"
#import "PersonLinkerVC.h"
@@ -67,8 +69,6 @@
[historyView setContextMenuDelegate:self];
[historyView setShortcutsDelegate:self];
- CategorizedHistoryModel::instance()->addCollection<LocalHistoryCollection>(LoadOptions::FORCE_ENABLED);
-
QObject::connect(CallModel::instance(),
&CategorizedHistoryModel::dataChanged,
[=](const QModelIndex &topLeft, const QModelIndex &bottomRight) {