Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-client-macos
Commits
d6e32255
Commit
d6e32255
authored
Sep 24, 2015
by
Alexandre Lision
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contacts: ensure basic categories exist
Issue: #80834 Change-Id: I61679f4859f79bdea1f4ac7a6c7a01d2b83f0bfc
parent
34e738ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/main.mm
src/main.mm
+7
-0
No files found.
src/main.mm
View file @
d6e32255
...
...
@@ -31,6 +31,7 @@
#import <personmodel.h>
#import <categorizedhistorymodel.h>
#import <localhistorycollection.h>
#import <numbercategorymodel.h>
#import "backends/AddressBookBackend.h"
#import "delegates/ImageManipulationDelegate.h"
...
...
@@ -55,6 +56,12 @@ int main(int argc, const char *argv[]) {
CategorizedHistoryModel
::
instance
()
->
addCollection
<
LocalHistoryCollection
>
(
LoadOptions
::
FORCE_ENABLED
);
/* make sure basic number categories exist, in case user has no contacts
* from which these would be automatically created
*/
NumberCategoryModel
::
instance
()
->
addCategory
(
"work"
,
QVariant
());
NumberCategoryModel
::
instance
()
->
addCategory
(
"home"
,
QVariant
());
GlobalInstances
::
setPixmapManipulator
(
std
::
unique_ptr
<
Interfaces
::
ImageManipulationDelegate
>
(
new
Interfaces
::
ImageManipulationDelegate
()));
PersonModel
::
instance
()
->
addCollection
<
AddressBookBackend
>
(
LoadOptions
::
FORCE_ENABLED
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment