[rkward-cvs] SF.net SVN: rkward-code:[4813] trunk/rkward/rkward/plugin/rkcomponentmap. cpp

tfry at users.sf.net tfry at users.sf.net
Fri Sep 12 16:34:48 UTC 2014


Revision: 4813
          http://sourceforge.net/p/rkward/code/4813
Author:   tfry
Date:     2014-09-12 16:34:47 +0000 (Fri, 12 Sep 2014)
Log Message:
-----------
Look for localized files in correct dir.

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkcomponentmap.cpp

Modified: trunk/rkward/rkward/plugin/rkcomponentmap.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkcomponentmap.cpp	2014-09-11 18:40:36 UTC (rev 4812)
+++ trunk/rkward/rkward/plugin/rkcomponentmap.cpp	2014-09-12 16:34:47 UTC (rev 4813)
@@ -404,13 +404,13 @@
 					}
 				}
 				if (!exact_match.isEmpty ()) {
-					file = exact_match;
+					file = dir.absoluteFilePath (exact_match);
 					RK_DEBUG (PLUGIN, DL_INFO, "Found exact match");
 				} else if (!plain_match.isEmpty ()) {
-					file = plain_match;
+					file = dir.absoluteFilePath (plain_match);
 					RK_DEBUG (PLUGIN, DL_INFO, "Found language match");
 				} else if (!candidates.isEmpty ()) {
-					file = candidates[0];
+					file = dir.absoluteFilePath (candidates[0]);
 					RK_DEBUG (PLUGIN, DL_INFO, "Using %s as best match");
 				} else {
 					RK_DEBUG (PLUGIN, DL_INFO, "No suitable localized version found");





More information about the rkward-tracker mailing list