]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Fix Qt bindings crash when removing a user.
authorDavid Edmundson <david@davidedmundson.co.uk>
Mon, 20 Feb 2012 00:59:01 +0000 (00:59 +0000)
committerDavid Edmundson <david@davidedmundson.co.uk>
Mon, 20 Feb 2012 00:59:01 +0000 (00:59 +0000)
liblightdm-qt/usersmodel.cpp

index d9af40065ec974ae006cdebb92efcce005c004cf..1b2324ee093308722e562d8a810608a4db655e9d 100644 (file)
@@ -167,7 +167,7 @@ void UsersModelPrivate::cb_userRemoved(LightDMUserList *user_list, LightDMUser *
         if (that->users[i].name == userToRemove) {
             that->q_ptr->beginRemoveRows(QModelIndex(), i, i);
             that->users.removeAt(i);
-            that->q_ptr->endMoveRows();
+            that->q_ptr->endRemoveRows();
             break;
         }
     }