Skip to content

Commit

Permalink
fix root display type
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Jan 25, 2017
1 parent d795c73 commit 7ecc312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/ui/Service.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MusicPage {
property var serviceItem: null
property bool loaded: false // used to detect difference between first and further loads
property bool isRoot: mediaModel.isRoot
property int displayType: 3 /*Editorial*/
property int displayType: 3 // display type for root
property bool isListView: false

// the model handles search
Expand Down
2 changes: 1 addition & 1 deletion backend/modules/NosonApp/mediamodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ int MediaModel::parentDisplayType() const
{
SONOS::LockGuard lock(m_lock);
if (m_path.empty())
return 0; // Grid
return 3; // Editorial
else
return m_path.top().displayType;
}
Expand Down

0 comments on commit 7ecc312

Please sign in to comment.