[rkward-cvs] rkward/rkward/settings rksettingsmoduleplugins.cpp,1.12,1.13

Thomas Friedrichsmeier tfry at users.sourceforge.net
Wed Oct 26 19:21:42 UTC 2005


Update of /cvsroot/rkward/rkward/rkward/settings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6600/rkward/settings

Modified Files:
	rksettingsmoduleplugins.cpp 
Log Message:
Fix guessing location of standard_plugins.pluginmap

Index: rksettingsmoduleplugins.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/settings/rksettingsmoduleplugins.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** rksettingsmoduleplugins.cpp	24 Oct 2005 19:39:43 -0000	1.12
--- rksettingsmoduleplugins.cpp	26 Oct 2005 19:21:40 -0000	1.13
***************
*** 115,122 ****
  	plugin_maps = config->readListEntry ("Plugin Maps");
  	if (!plugin_maps.count ()) {
! 		QString dummy = KGlobal::dirs()->findResourceDir("plugins", "standard_plugins.pluginmap");
  		if (dummy.isEmpty ()) {
  			// try our luck with a relative path
  			dummy = "plugins";
  		}
  		plugin_maps.append (dummy + "/standard_plugins.pluginmap");
--- 115,124 ----
  	plugin_maps = config->readListEntry ("Plugin Maps");
  	if (!plugin_maps.count ()) {
! 		QString dummy = KGlobal::dirs()->findResourceDir("data", "rkward/standard_plugins.pluginmap");
  		if (dummy.isEmpty ()) {
  			// try our luck with a relative path
  			dummy = "plugins";
+ 		} else {
+ 			dummy.append ("rkward");
  		}
  		plugin_maps.append (dummy + "/standard_plugins.pluginmap");





More information about the rkward-tracker mailing list