one more preservation for previous

This commit is contained in:
mappu 2017-06-19 20:27:52 +12:00
parent 26f7a11d80
commit 571bfcf4b6
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ void MainWindow::on_DeleteDataButton_clicked()
QString err;
for (int i = selection.length(); i-->0;) {
if (! bdb->deleteItem(browse, selection[i]->text(0).toUtf8(), err)) {
if (! bdb->deleteItem(browse, selection[i]->data(0, BinaryDataRole).toByteArray(), err)) {
QMessageBox qmb;
qmb.setText(tr("Error removing item: %1").arg(err));
qmb.exec();