Commit 6561c4b6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt to new api

svn path=/trunk/KDE/kdebase/libkonq/; revision=538514
parent d5a5937e
...@@ -656,7 +656,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf) ...@@ -656,7 +656,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
// first check the .directory if this is a directory // first check the .directory if this is a directory
if (isDirectory && isSingleLocal) if (isDirectory && isSingleLocal)
{ {
QString dotDirectoryFile = m_lstItems.first()->url().path(1).append(".directory"); QString dotDirectoryFile = m_lstItems.first()->url().path(KUrl::AddTrailingSlash).append(".directory");
KSimpleConfig cfg( dotDirectoryFile, true ); KSimpleConfig cfg( dotDirectoryFile, true );
cfg.setDesktopGroup(); cfg.setDesktopGroup();
...@@ -1140,7 +1140,7 @@ void KonqPopupMenu::addPlugins() ...@@ -1140,7 +1140,7 @@ void KonqPopupMenu::addPlugins()
KonqPopupMenuPlugin *plugin = KonqPopupMenuPlugin *plugin =
KLibLoader::createInstance<KonqPopupMenuPlugin>( QFile::encodeName( (*iterator)->library() ), KLibLoader::createInstance<KonqPopupMenuPlugin>( QFile::encodeName( (*iterator)->library() ),
this, this,
(*iterator)->name().toLatin1() ); QStringList((*iterator)->name().toLatin1()) );
if ( !plugin ) if ( !plugin )
continue; continue;
QString pluginClientName = QString::fromLatin1( "Plugin%1" ).arg( pluginCount ); QString pluginClientName = QString::fromLatin1( "Plugin%1" ).arg( pluginCount );
......
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