Don't emit newItems with no items. (BR68154)

svn path=/trunk/kdebase/kfind/; revision=288746
This commit is contained in:
Waldo Bastian 2004-02-17 16:58:39 +00:00
parent 6c00f69953
commit 23d3121367

View file

@ -203,7 +203,8 @@ void KFindPart::restoreState( QDataStream& stream )
stream >> *item;
m_lstFileItems.append(item);
}
emit newItems(m_lstFileItems);
if (nbitems)
emit newItems(m_lstFileItems);
emit finished();
}