]> git.sesse.net Git - nageru/commitdiff
Fix so that when editing a field, the previous value is readily available.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 20 Jun 2018 21:18:26 +0000 (23:18 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 20 Jun 2018 21:18:26 +0000 (23:18 +0200)
clip_list.cpp

index 3c9637258f60c8b002cee6b23321a318f9734972..09fe0348e3ff8dc81e7d8e301b7e00979c62743f 100644 (file)
@@ -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)) {