if (m_shownUrl == KUrl(fileName)) {
// the currently shown item has been removed, show
// the parent directory as fallback
- m_shownUrl = url();
- showItemInfo();
+ reset();
break;
}
}
// 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.
- m_shownUrl = url();
- showItemInfo();
+ reset();
}
}
m_nameLabel->setText(wrappedText);
}
+void InformationPanel::reset()
+{
+ m_selection.clear();
+ m_shownUrl = url();
+ m_fileItem = KFileItem();
+ showItemInfo();
+}
+
void InformationPanel::init()
{
const int spacing = KDialog::spacingHint();