Commit 34e738ec authored by Alexandre Lision's avatar Alexandre Lision

history: fix loading

History collection is loaded before starting the UI

Issue: #80833
Change-Id: I96d7aa2a7e92f92ee1bcd4ea8d16c9a780d68fba
parent 21666f38
......@@ -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 @@ NSInteger const DETAILS_TAG = 300;
[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) {
......
......@@ -29,6 +29,8 @@
//LRC
#import <personmodel.h>
#import <categorizedhistorymodel.h>
#import <localhistorycollection.h>
#import "backends/AddressBookBackend.h"
#import "delegates/ImageManipulationDelegate.h"
......@@ -51,6 +53,8 @@ int main(int argc, const char *argv[]) {
app->installTranslator(&translator);
}
CategorizedHistoryModel::instance()->addCollection<LocalHistoryCollection>(LoadOptions::FORCE_ENABLED);
GlobalInstances::setPixmapManipulator(std::unique_ptr<Interfaces::ImageManipulationDelegate>(new Interfaces::ImageManipulationDelegate()));
PersonModel::instance()->addCollection<AddressBookBackend>(LoadOptions::FORCE_ENABLED);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment