if(model->removeRow(ui.listView->currentIndex().row())){ ui.listView->setCurrentIndex(model->index(0,1));}else qCritical() << model->lastError().text();