fix possible crash, as MetaDataWidget::metaDataAvailable() can change during runtime

BUG: 157915

svn path=/trunk/KDE/kdebase/apps/; revision=775610
This commit is contained in:
Peter Penz 2008-02-16 12:40:38 +00:00
parent f70b85b4ca
commit 790ecfeacf

View file

@ -335,11 +335,11 @@ void InfoSidebarPage::showMetaInfo()
}
}
if (MetaDataWidget::metaDataAvailable()) {
if (m_metadataWidget != 0) {
m_metadataWidget->setFile(fileItem.url());
}
} else {
if (MetaDataWidget::metaDataAvailable()) {
if (m_metadataWidget != 0) {
KUrl::List urls;
foreach (const KFileItem& item, selectedItems) {
urls.append(item.url());