Skip to content
Snippets Groups Projects
Commit 4a1c7406 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

ui: make sure smartlist is loaded

After Ring's first launch, smartlist appeared empty.
This patch makes sure that before presenting the UI the RecentModel
is initialized

Change-Id: Iadd7b43f89ff9b9415ed381fce109ede464a1049
Tuleap: #255
parent ef32456d
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
//LRC
#import <personmodel.h>
#import <recentmodel.h>
#import <categorizedhistorymodel.h>
#import <localhistorycollection.h>
#import <numbercategorymodel.h>
......@@ -71,6 +72,7 @@ int main(int argc, const char *argv[]) {
GlobalInstances::setPixmapManipulator(std::unique_ptr<Interfaces::ImageManipulationDelegate>(new Interfaces::ImageManipulationDelegate()));
PersonModel::instance().addCollection<AddressBookBackend>(LoadOptions::FORCE_ENABLED);
RecentModel::instance(); // Make sure RecentModel is initialized before showing UI
return NSApplicationMain(argc, argv);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment