Commit 2b6e4979 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port from KNewFileMenu::setPopupFiles to KNewFileMenu::setWorkingDirectory

The former is deprecated
parent b45d0cd6
Pipeline #200440 passed with stage
in 4 minutes and 37 seconds
......@@ -1708,7 +1708,7 @@ void FolderModel::updateActions()
if (m_newMenu) {
m_newMenu->checkUpToDate();
m_newMenu->setPopupFiles(QList<QUrl>() << m_dirModel->dirLister()->url());
m_newMenu->setWorkingDirectory(m_dirModel->dirLister()->url());
// we need to set here as well, when the menu is shown via AppletInterface::eventFilter
m_menuPosition = QCursor::pos();
......@@ -2139,7 +2139,7 @@ void FolderModel::undoTextChanged(const QString &text)
void FolderModel::createFolder()
{
m_newMenu->setPopupFiles(QList<QUrl>() << m_dirModel->dirLister()->url());
m_newMenu->setWorkingDirectory(m_dirModel->dirLister()->url());
m_newMenu->createDirectory();
}
......
Supports Markdown
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