pictureviewer.cpp: fix possible segfault

This commit is contained in:
satbaby
2012-05-02 19:41:24 +02:00
parent c4c5e6cd4c
commit 4f2a24899e

View File

@@ -430,7 +430,9 @@ int CPictureViewerGui::show()
}
else if (msg==CRCInput::RC_blue)
{
if ((m_state == MENU) && (!playlist.empty()))
if(!playlist.empty())
{
if (m_state == MENU)
{
m_time=(long)time(NULL);
view(selected);
@@ -442,6 +444,7 @@ int CPictureViewerGui::show()
m_state = SLIDESHOW;
}
}
}
else if (msg==CRCInput::RC_help)
{
if (m_state == MENU)