From adfd9e9107cd0dd6136042d6d92d9e136982c704 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 20 Jun 2018 23:18:26 +0200 Subject: [PATCH] Fix so that when editing a field, the previous value is readily available. --- clip_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clip_list.cpp b/clip_list.cpp index 3c96372..09fe034 100644 --- a/clip_list.cpp +++ b/clip_list.cpp @@ -79,7 +79,7 @@ QVariant ClipList::data(const QModelIndex &parent, int role) const { } } - if (role != Qt::DisplayRole) + if (role != Qt::DisplayRole && role != Qt::EditRole) return QVariant(); switch (Column(column)) { @@ -131,7 +131,7 @@ QVariant PlayList::data(const QModelIndex &parent, int role) const { } } - if (role != Qt::DisplayRole) + if (role != Qt::DisplayRole && role != Qt::EditRole) return QVariant(); switch (Column(column)) { -- 2.39.2