Make sure people can switch between HEAD and kwin_iii.

svn path=/trunk/kdebase/kwin/; revision=246934
This commit is contained in:
Luboš Luňák 2003-08-30 18:02:59 +00:00
parent b7547a0a87
commit 92cc980241

View file

@ -80,6 +80,10 @@ Client* PluginMgr::createClient(Workspace *ws, WId w, NET::WindowType type)
// returns true if plugin was loaded successfully
bool PluginMgr::loadPlugin(QString nameStr)
{
// make sure people can switch between HEAD and kwin_iii branch
if( nameStr.startsWith( "kwin3_" ))
nameStr = "kwin_" + nameStr.mid( 6 );
KLibrary *oldLibrary = library;
QString path = KLibLoader::findLibrary(QFile::encodeName(nameStr));