mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Prevent dolphin from crashing when selecting several files and the
knep{daemon,coreservices} are not running. svn path=/trunk/KDE/kdebase/apps/; revision=645589
This commit is contained in:
parent
4427e1c2a0
commit
7d2b29ab1d
|
@ -331,7 +331,8 @@ void InfoSidebarPage::createMetaInfo()
|
|||
m_metadataWidget->setFile( fileItem->url() );
|
||||
}
|
||||
else {
|
||||
m_metadataWidget->setFiles( view->selectedItems().urlList() );
|
||||
if ( MetaDataWidget::metaDataAvailable() )
|
||||
m_metadataWidget->setFiles( view->selectedItems().urlList() );
|
||||
unsigned long int totSize = 0;
|
||||
foreach(KFileItem* item, view->selectedItems()) {
|
||||
totSize += item->size(); //FIXME what to do with directories ? (same with the one-item-selected-code), item->size() does not return the size of the content : not very instinctive for users
|
||||
|
|
Loading…
Reference in a new issue