Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcontacts
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mer-core-attic
libcontacts
Commits
416b2d71
Commit
416b2d71
authored
Jun 02, 2020
by
kende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libcontacts] Avoid crash from null ContactManagerEngine
parent
0fdde724
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/seasidecache.cpp
src/seasidecache.cpp
+9
-5
No files found.
src/seasidecache.cpp
View file @
416b2d71
...
...
@@ -571,17 +571,21 @@ SeasideCache::SeasideCache()
// need to find it from the manager's engine object
typedef
QtContactsSqliteExtensions
::
ContactManagerEngine
EngineType
;
EngineType
*
cme
=
dynamic_cast
<
EngineType
*>
(
QContactManagerData
::
managerData
(
mgr
)
->
m_engine
);
connect
(
cme
,
SIGNAL
(
displayLabelGroupsChanged
(
QStringList
)),
this
,
SLOT
(
displayLabelGroupsChanged
(
QStringList
)));
displayLabelGroupsChanged
(
cme
->
displayLabelGroups
());
if
(
cme
)
{
connect
(
cme
,
SIGNAL
(
displayLabelGroupsChanged
(
QStringList
)),
this
,
SLOT
(
displayLabelGroupsChanged
(
QStringList
)));
displayLabelGroupsChanged
(
cme
->
displayLabelGroups
());
connect
(
cme
,
SIGNAL
(
contactsPresenceChanged
(
QList
<
QContactId
>
)),
this
,
SLOT
(
contactsPresenceChanged
(
QList
<
QContactId
>
)));
}
else
{
qWarning
()
<<
"Unable to retrieve contact manager engine"
;
}
connect
(
mgr
,
SIGNAL
(
dataChanged
()),
this
,
SLOT
(
dataChanged
()));
connect
(
mgr
,
SIGNAL
(
contactsAdded
(
QList
<
QContactId
>
)),
this
,
SLOT
(
contactsAdded
(
QList
<
QContactId
>
)));
connect
(
mgr
,
SIGNAL
(
contactsChanged
(
QList
<
QContactId
>
)),
this
,
SLOT
(
contactsChanged
(
QList
<
QContactId
>
)));
connect
(
cme
,
SIGNAL
(
contactsPresenceChanged
(
QList
<
QContactId
>
)),
this
,
SLOT
(
contactsPresenceChanged
(
QList
<
QContactId
>
)));
connect
(
mgr
,
SIGNAL
(
contactsRemoved
(
QList
<
QContactId
>
)),
this
,
SLOT
(
contactsRemoved
(
QList
<
QContactId
>
)));
...
...
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