X-Git-Url: https://vcs.maemo.org/git/?p=timedsilencer;a=blobdiff_plain;f=switchingeventlist.cpp;fp=switchingeventlist.cpp;h=022b7d90bbc17d8a70a0e7b753e7126c70d940ce;hp=8773bcbcf48c282dd8ddd800e7f2a632635f17ca;hb=74851b2730e2d2d2714a8e032a9722a6f6bb23cf;hpb=fb74efa9c26510f674ad0838ac85a87942f0b69e diff --git a/switchingeventlist.cpp b/switchingeventlist.cpp index 8773bcb..022b7d9 100644 --- a/switchingeventlist.cpp +++ b/switchingeventlist.cpp @@ -70,8 +70,8 @@ void SwitchingEventList::editEvent(QModelIndex index) { QByteArray edited_id = model->data(model->index(index.row(), EV_ID)).toByteArray(); if(index.column() == EV_STATUS) { // Toggle activated state - const bool new_status = !index.data().toBool(); - model->setData(index, new_status); + const bool new_status = !index.data(Qt::UserRole).toBool(); + model->setData(index, new_status, Qt::UserRole); // Alter Alarmd events if(new_status) { // Was activated