summaryrefslogtreecommitdiff
path: root/src/helpers.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2014-11-06 19:23:54 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2014-11-06 19:23:54 +0100
commit9cb3b21d4a1749c9c4ef2289eb116a06d646bc8f (patch)
treeff34f2b0616c76e725d828bf3d344549cb05f5b3 /src/helpers.h
parent309a4989c9eebb280da507f0ba396b6ea519b38e (diff)
parenta32a4262b8e458297838b111a5708a36ad970ef5 (diff)
Merge branch '0.6.x'
Conflicts: NEWS configure.ac src/media_library.cpp src/playlist_editor.cpp src/tags.cpp
Diffstat (limited to 'src/helpers.h')
-rw-r--r--src/helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.h b/src/helpers.h
index 2ea385ce..98db9510 100644
--- a/src/helpers.h
+++ b/src/helpers.h
@@ -87,7 +87,7 @@ inline MPD::Song *currentSong(BaseScreen *screen)
{
MPD::Song *ptr = 0;
auto pl = proxySongList(screen);
- if (pl)
+ if (pl && !pl.empty())
ptr = pl.currentSong();
return ptr;
}