folders still need to be removed

preferencesAboutTextFull
Clément Fauconnier 4 years ago
parent 30087bb34d
commit c9826bbe6b
  1. 10
      src/document/UBDocumentController.cpp

@ -2788,6 +2788,16 @@ void UBDocumentController::deleteIndexAndAssociatedData(const QModelIndex &pInde
qDebug() << "could not remove row (r:" << indexForProxy.row() << "p:" << indexForProxy.parent() << ")"; qDebug() << "could not remove row (r:" << indexForProxy.row() << "p:" << indexForProxy.parent() << ")";
} }
} }
else
{
if (docModel->isCatalog(pIndex))
{
if (!docModel->removeRow(pIndex.row(), pIndex.parent()))
{
qDebug() << "could not remove row (r:" << pIndex.row() << "p:" << pIndex.parent() << ")";
}
}
}
} }

Loading…
Cancel
Save