Fix some compiler warnings

This commit is contained in:
Jonas Kvinge
2018-09-12 22:51:10 +02:00
parent 27e3448dda
commit fc8a27f55b
6 changed files with 7 additions and 15 deletions

View File

@@ -232,12 +232,7 @@ void PlaylistView::SetItemDelegates(CollectionBackend *backend) {
setItemDelegateForColumn(Playlist::Column_Filename, new NativeSeparatorsDelegate(this));
setItemDelegateForColumn(Playlist::Column_LastPlayed, new LastPlayedItemDelegate(this));
if (app_ && app_->player()) {
setItemDelegateForColumn(Playlist::Column_Source, new SongSourceDelegate(this, app_->player()));
}
else {
header_->HideSection(Playlist::Column_Source);
}
setItemDelegateForColumn(Playlist::Column_Source, new SongSourceDelegate(this));
}