X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/ad85be955bc34f9ed9aa69f4453f26f57bf85e04..08f93a673d519de4cb6ecc35b151f674366fbb3d:/src/dolphinpart.cpp diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index c8db1c1e1..0a17c7884 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -106,8 +106,6 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL this, SLOT(slotSelectionChanged(KFileItemList))); connect(m_view, SIGNAL(requestItemInfo(KFileItem)), this, SLOT(slotRequestItemInfo(KFileItem))); - connect(m_view, SIGNAL(requestUrlChange(KUrl)), - this, SLOT(slotRequestUrlChange(KUrl))); connect(m_view, SIGNAL(modeChanged()), this, SIGNAL(viewModeChanged())); // relay signal connect(m_view, SIGNAL(redirection(KUrl, KUrl)), @@ -156,7 +154,8 @@ void DolphinPart::createActions() { // Edit menu - m_newMenu = new KNewFileMenu(actionCollection(), "new_menu", widget()); + m_newMenu = new KNewFileMenu(actionCollection(), "new_menu", this); + m_newMenu->setParentWidget(widget()); DolphinNewMenuObserver::instance().attach(m_newMenu); connect(m_newMenu->menu(), SIGNAL(aboutToShow()), this, SLOT(updateNewMenu())); @@ -455,16 +454,6 @@ void DolphinPart::slotRedirection(const KUrl& oldUrl, const KUrl& newUrl) } } -void DolphinPart::slotRequestUrlChange(const KUrl& url) -{ - if (m_view->url() != url) { - // If the view URL is not equal to 'url', then an inner URL change has - // been done (e. g. by activating an existing column in the column view). - openUrl(url); - emit m_extension->openUrlNotify(); - } -} - //// void DolphinPartBrowserExtension::restoreState(QDataStream &stream) @@ -625,4 +614,9 @@ void DolphinPart::createDirectory() m_newMenu->createDirectory(); } +void DolphinPart::setFilesToSelect(const KUrl::List& files) +{ + m_view->markUrlsAsSelected(files); +} + #include "dolphinpart.moc"