}
m_selection = selection;
+ m_fileItem = KFileItem();
const int count = selection.count();
if (count == 0) {
} else {
// no item is hovered and no selection has been done: provide
// an item for the directory represented by m_shownUrl
- m_fileItem = KFileItem(KFileItem::Unknown, KFileItem::Unknown, m_shownUrl);
- m_fileItem.refresh();
- item = m_fileItem;
+ item = KFileItem(KFileItem::Unknown, KFileItem::Unknown, m_shownUrl);
+ item.refresh();
}
m_content->showItem(item);
// The signal 'leftDirectory' is also emitted when a media
// has been unmounted. In this case no directory change will be
// done in Dolphin, but the Information Panel must be updated to
- // indicate an invalid directory.
+ // indicate an invalid directory.
markUrlAsInvalid();
}
}
connect(dirNotify, SIGNAL(leftDirectory(QString)), SLOT(slotLeftDirectory(QString)));
m_content = new InformationPanelContent(this);
+ connect(m_content, SIGNAL(urlActivated(KUrl)), this, SIGNAL(urlActivated(KUrl)));
m_initialized = true;
}