summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/library/banshee/bansheeplaylistmodel.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/library/banshee/bansheeplaylistmodel.cpp b/src/library/banshee/bansheeplaylistmodel.cpp
index 4f2b52caee..d46661b965 100644
--- a/src/library/banshee/bansheeplaylistmodel.cpp
+++ b/src/library/banshee/bansheeplaylistmodel.cpp
@@ -395,10 +395,7 @@ QString BansheePlaylistModel::getTrackLocation(const QModelIndex& index) const {
}
bool BansheePlaylistModel::isColumnInternal(int column) {
- if (column == fieldIndex(ColumnCache::COLUMN_PLAYLISTTRACKSTABLE_TRACKID) ||
+ return (column == fieldIndex(ColumnCache::COLUMN_PLAYLISTTRACKSTABLE_TRACKID) ||
(PlayerManager::numPreviewDecks() == 0 &&
- column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW))) {
- return true;
- }
- return false;
+ column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW)));
}