Memory Card Editor: Make fields not editable

This commit is contained in:
Silent 2021-10-31 14:04:23 +01:00
parent 85b49da62a
commit 690fa6ec3c
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ bool MemoryCardEditorDialog::loadCard(const QString& filename, Card* card)
static void setCardTableItemProperties(QTableWidgetItem* item, const MemoryCardImage::FileInfo& fi)
{
item->setFlags(item->flags() & ~(Qt::ItemIsEditable));
if (fi.deleted)
{
item->setBackground(Qt::darkRed);