From: Steinar H. Gunderson Date: Wed, 20 Jun 2018 21:18:26 +0000 (+0200) Subject: Fix so that when editing a field, the previous value is readily available. X-Git-Tag: 1.8.0~76^2~256 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=adfd9e9107cd0dd6136042d6d92d9e136982c704;p=nageru Fix so that when editing a field, the previous value is readily available. --- 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)) {