Commit 6f2203fb authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port from KNewFileMenu::setPopupFiles to KNewFileMenu::setWorkingDirectory

The former is deprecated
parent faa1f11f
Pipeline #200447 passed with stage
in 2 minutes and 30 seconds
......@@ -347,7 +347,11 @@ void FileOpsContextManagerItem::createFolder()
{
const QUrl url = contextManager()->currentDirUrl();
mNewFileMenu->setParentWidget(mGroup);
#if KIO_VERSION >= QT_VERSION_CHECK(5, 97, 0)
mNewFileMenu->setWorkingDirectory(url);
#else
mNewFileMenu->setPopupFiles(QList<QUrl>() << url);
#endif
mNewFileMenu->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