don't crash if the Information Panel is updated by file changes

BUG: 214060

svn path=/trunk/KDE/kdebase/apps/; revision=1060022
This commit is contained in:
Peter Penz 2009-12-07 22:15:54 +00:00
parent 4724888b0c
commit 1b05d108a1

View file

@ -343,7 +343,12 @@ void KMetaDataWidget::Private::updateRowsVisibility()
void KMetaDataWidget::Private::slotLoadingFinished()
{
#ifdef HAVE_NEPOMUK
Q_ASSERT(m_loadMetaDataThread != 0);
if (m_loadMetaDataThread == 0) {
// The signal finished() has been emitted, but the thread has been marked
// as invalid in the meantime. Just ignore the signal in this case.
return;
}
Q_ASSERT(m_ratingWidget != 0);
Q_ASSERT(m_commentWidget != 0);
Q_ASSERT(m_taggingWidget != 0);