Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[commhistoryd] Updated comments and debug trace in FsCleanup::onEvent…
…Deleted

To reflect the fact that deleteEvent signal is emitted by EventModel::moveEvent
  • Loading branch information
monich committed Jan 26, 2016
1 parent 8dca3de commit 3b5b2b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fscleanup.cpp
Expand Up @@ -45,12 +45,13 @@ FsCleanup::FsCleanup(QObject* aParent) :

void FsCleanup::onEventDeleted(int aEventId)
{
DEBUG_("Event" << aEventId << "deleted");
CommHistory::DatabaseIO* io = CommHistory::DatabaseIO::instance();
if (!io->eventExists(aEventId)) {
DEBUG_("Event" << aEventId << "deleted");
deleteFiles(aEventId);
} else {
qWarning() << "Ignoring stray delete event for" << aEventId;
// Ignore deleteEvent signals emitted by EventModel::moveEvent
DEBUG_("Ignoring delete signal for" << aEventId);
}
}

Expand Down

0 comments on commit 3b5b2b5

Please sign in to comment.