From f568ff9c68bdc61cbc4482f9b2c6e1096cecaae0 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 29 May 2004 17:11:23 +0000 Subject: fix path handling --- diff --git a/libopie2/opiecore/opluginloader.cpp b/libopie2/opiecore/opluginloader.cpp index c2dc239..3d286e5 100644 --- a/libopie2/opiecore/opluginloader.cpp +++ b/libopie2/opiecore/opluginloader.cpp @@ -222,7 +222,7 @@ void OPluginItem::setName( const QString& name ) { * @param name The path of the plugin */ void OPluginItem::setPath( const QString& name ) { - m_name = name; + m_path = name; } /** @@ -823,7 +823,7 @@ void OPluginManager::save() { */ for ( OPluginItem::List::Iterator it = m_plugins.begin(); it != m_plugins.end(); ++it ) { OPluginItem item = *it; - QString path = QFileInfo( item.path() ).filePath(); + QString path = QFileInfo( item.path() ).dirPath(true); if ( sorted ) { positions[path].append( item.name() ); positions[path].append( QString::number( item.position() ) ); -- cgit v0.9.0.2