don't crash on startup

parent 489e97d5
......@@ -510,7 +510,7 @@ void Playlist::createItems(const PlaylistItemList &siblings, PlaylistItem *after
void Playlist::addFiles(const QStringList &files, PlaylistItem *after)
{
if(!after)
if(!after && !m_items.isEmpty())
after = m_items.last();
KApplication::setOverrideCursor(Qt::waitCursor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment