Some changes.
This commit is contained in:
parent
04218ca1ae
commit
bde581fa3d
1 changed files with 7 additions and 1 deletions
|
@ -140,7 +140,13 @@ void FeedsView::deleteSelectedItem() {
|
||||||
selection_model->select(current_index, QItemSelectionModel::Rows | QItemSelectionModel::SelectCurrent);
|
selection_model->select(current_index, QItemSelectionModel::Rows | QItemSelectionModel::SelectCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_sourceModel->removeItem(m_proxyModel->mapToSource(current_index));
|
if (m_sourceModel->removeItem(m_proxyModel->mapToSource(current_index))) {
|
||||||
|
// Item WAS removed.
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Item WAS NOT removed, either database-related error occurred
|
||||||
|
// or update is undergoing.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeedsView::markSelectedFeedsReadStatus(int read) {
|
void FeedsView::markSelectedFeedsReadStatus(int read) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue