[bt-devel] RFC: Remove modules installed by the native package manager

Sveinung Kvilhaugsvik sveinung84 at users.sourceforge.net
Mon Apr 27 11:20:09 MST 2009


Not neeeded anymore since CSwordModuleInfo::AbsoluteDataPath
guarantees a slash at the end

=== modified file 'src/frontend/bookshelfmanager/removepage/btremovepage.cpp'
--- src/frontend/bookshelfmanager/removepage/btremovepage.cpp	2009-04-21
19:23:29 +0000
+++ src/frontend/bookshelfmanager/removepage/btremovepage.cpp	2009-04-27
14:24:38 +0000
@@ -156,7 +156,7 @@
 		foreach ( CSwordModuleInfo* mInfo, toBeDeleted ) {
 			Q_ASSERT(mInfo); // Only installed modules could have been
selected and returned by takeModulesFromList
 			// Find the install path for the sword manager
-			QString prefixPath =
mInfo->config(CSwordModuleInfo::AbsoluteDataPath) + "/";
+			QString prefixPath = mInfo->config(CSwordModuleInfo::AbsoluteDataPath);
 			QString dataPath = mInfo->config(CSwordModuleInfo::DataPath);
 			if (dataPath.left(2) == "./") {
 				dataPath = dataPath.mid(2);



More information about the bt-devel mailing list