loadDirectory(url);
}
+ // When changing the URL there is no need to keep the revision
+ // data of the previous URL.
+ m_dolphinModel->clearRevisionData();
+
emit startedPathLoading(url);
}
QList<QAction*> DolphinView::revisionControlActions(const KFileItemList& items) const
{
- return m_revisionControlObserver->contextMenuActions(items);
+ return items.isEmpty()
+ ? m_revisionControlObserver->contextMenuActions(url().path(KUrl::AddTrailingSlash))
+ : m_revisionControlObserver->contextMenuActions(items);
}
void DolphinView::setUrl(const KUrl& url)
m_previewGenerator->setPreviewShown(m_showPreview);
m_revisionControlObserver = new RevisionControlObserver(view);
+ connect(m_revisionControlObserver, SIGNAL(infoMessage(const QString&)),
+ this, SIGNAL(infoMessage(const QString&)));
+ connect(m_revisionControlObserver, SIGNAL(errorMessage(const QString&)),
+ this, SIGNAL(errorMessage(const QString&)));
+ connect(m_revisionControlObserver, SIGNAL(operationCompletedMessage(const QString&)),
+ this, SIGNAL(operationCompletedMessage(const QString&)));
if (DolphinSettings::instance().generalSettings()->showToolTips()) {
m_toolTipManager = new ToolTipManager(view, m_proxyModel);