Bug 328447

Summary: ktp-log-viewer does not show contacts
Product: [Unmaintained] telepathy Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: log-viewerAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git-latest   
Target Milestone: Future   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eugene Shalygin 2013-12-05 12:08:51 UTC
Contacts list is empty in log viewer on my setup. I'm using all ktp packages from Git master.

Reproducible: Always




If I replace in LogViewer::LogViewer() m_filterModel in the call ui->entityList->setModel(m_filterModel);
with m_contactsModel, the contacts are shown.

In PersonEntityMergeModel::sourceModelInitialized() initializeMode() is never called,  m_initializedSources == 0 at the entering. PersonEntityMergeModel::sourceModelInitialized() is not called second time. If I move initializeModel() call out of if statement, contacts list
shows my contacts (well, their IDs), the same if condition is changed to "== 1" instead of "== 2" and I can browse my logs
Comment 1 Daniel Vrátil 2013-12-06 12:43:22 UTC
Git commit f870f907011f6da712853b17c012e670d29a74cb by Dan Vrátil.
Committed on 06/12/2013 at 12:39.
Pushed by dvratil into branch 'master'.

Delay initial call to PersonsModel::onContactsFetched

onContactsFetched() emits the modelInitialized() signal, so when it's
called directly from constructor, the signal's emitted before anyone
can connect to it.

M  +2    -1    src/personsmodel.cpp

http://commits.kde.org/libkpeople/f870f907011f6da712853b17c012e670d29a74cb