diff --git a/src/app/valentina/dialogs/dialoghistory.cpp b/src/app/valentina/dialogs/dialoghistory.cpp index feb1396e7..429f34bcb 100644 --- a/src/app/valentina/dialogs/dialoghistory.cpp +++ b/src/app/valentina/dialogs/dialoghistory.cpp @@ -169,6 +169,7 @@ void DialogHistory::FillTable() QTableWidgetItem *item = new QTableWidgetItem(QString()); item->setTextAlignment(Qt::AlignHCenter); item->setData(Qt::UserRole, tool.getId()); + item->setFlags(item->flags() ^ Qt::ItemIsEditable); ui->tableWidget->setItem(currentRow, 0, item); } @@ -177,9 +178,6 @@ void DialogHistory::FillTable() item->setFlags(item->flags() ^ Qt::ItemIsEditable); ui->tableWidget->setItem(currentRow, 1, item); ++count; - - item = ui->tableWidget->item(currentRow, 0); - item->setFlags(item->flags() ^ Qt::ItemIsEditable); } } ui->tableWidget->setRowCount(count);//Real row count