]> git.sesse.net Git - nageru/blobdiff - clip_list.cpp
Support giving in file names on the command line.
[nageru] / 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)) {