From 571bfcf4b6cc188ece2a7254d6648fd3fe6b6afb Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 19 Jun 2017 20:27:52 +1200 Subject: [PATCH] one more preservation for previous --- qbolt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbolt/mainwindow.cpp b/qbolt/mainwindow.cpp index 3e86245..209897e 100644 --- a/qbolt/mainwindow.cpp +++ b/qbolt/mainwindow.cpp @@ -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();