dolphinpart fix: don't let the konq wheel spin forever when clicking on the Home button and we're already viewing $HOME.
svn path=/trunk/KDE/kdebase/apps/; revision=705916
const QString prettyUrl = url.pathOrUrl();
emit setWindowCaption(prettyUrl);
emit m_extension->setLocationBarUrl(prettyUrl);
+ const bool reload = arguments().reload();
+ if (m_view->url() == url && !reload) { // DolphinView won't do anything in that case, so don't emit started
+ return true;
+ }
setUrl(url); // remember it at the KParts level
m_view->setUrl(url);
- if (arguments().reload())
+ if (reload)
m_view->reload();
emit started(0); // get the wheel to spin
return true;
return;
}
- m_controller->setUrl(url);
+ m_controller->setUrl(url); // emits urlChanged, which we forward
applyViewProperties(url);
startDirLister(url);
- emit urlChanged(url);
}
void DolphinView::mouseReleaseEvent(QMouseEvent* event)
{
QColor color = KColorScheme(KColorScheme::View).background();
if (m_active) {
- emit urlChanged(url());
+ emit urlChanged(url()); // Hmm, this is a hack; the url hasn't really changed.
emit selectionChanged(selectedItems());
} else {
color.setAlpha(0);