mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
f70b85b4ca
commit
790ecfeacf
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue