Commit b5985e45 authored by Andras Mantia's avatar Andras Mantia

Show newly created items on the right desktop

Summary: Patch by Kai Uwe Broulik

Reviewers: #plasma, hein, mwolff, broulik

Reviewed By: #plasma, hein

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 254d82a2
......@@ -263,6 +263,13 @@ void FolderModel::invalidateFilterIfComplete()
void FolderModel::newFileMenuItemCreated(const QUrl &url)
if (m_screenMapper) {
m_screenMapper->addMapping(url.toString(), m_screen, ScreenMapper::DelayedSignal);
QString FolderModel::url() const
return m_url;
......@@ -1567,6 +1574,8 @@ void FolderModel::createActions()
m_newMenu = new KNewFileMenu(&m_actionCollection, QStringLiteral("newMenu"), QApplication::desktop());
connect(m_newMenu, &KNewFileMenu::directoryCreated, this, &FolderModel::newFileMenuItemCreated);
connect(m_newMenu, &KNewFileMenu::fileCreated, this, &FolderModel::newFileMenuItemCreated);
m_copyToMenu = new KFileCopyToMenu(nullptr);
......@@ -296,6 +296,7 @@ class FOLDERPLUGIN_TESTS_EXPORT FolderModel : public QSortFilterProxyModel, publ
void undoTextChanged(const QString &text);
void invalidateIfComplete();
void invalidateFilterIfComplete();
void newFileMenuItemCreated(const QUrl &url);
struct DragImage {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment