Fix header context menu items

BUG: 640
This commit is contained in:
craig.p.drummond
2015-02-27 18:05:39 +00:00
parent e984c10c52
commit d033a684ed
2 changed files with 2 additions and 0 deletions

View File

@@ -208,6 +208,7 @@ QVariant PlaylistsModel::headerData(int section, Qt::Orientation orientation, in
if (Qt::Horizontal==orientation) {
switch (role) {
case Qt::DisplayRole:
case Cantata::Role_ContextMenuText:
return headerText(section);
case Qt::TextAlignmentRole:
return alignments[section];

View File

@@ -98,6 +98,7 @@ QVariant SearchModel::headerData(int section, Qt::Orientation orientation, int r
if (Qt::Horizontal==orientation) {
switch (role) {
case Qt::DisplayRole:
case Cantata::Role_ContextMenuText:
return headerText(section);
case Qt::TextAlignmentRole:
return alignments[section];