-void PlacesPanel::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end)
-{
- Q_UNUSED(parent);
-
- const QModelIndexList indexes = selectedIndexes();
- if (!indexes.isEmpty()) {
- const int selectedRow = indexes.first().row();
- if ((start >= selectedRow) && (end <= selectedRow)) {
- // The currently selected item is about to be removed, reset view to home URL
- const KUrl homeUrl = DolphinSettings::instance().generalSettings()->homeUrl();
- setUrl(homeUrl);
- emit urlChanged(homeUrl, Qt::NoButton);
- }
- }
-}
-