glitch on bug 11131. check the new qmake location to avoid adding duplicate Qt SDKs at IDE start-up RCL_2_4
authortimkelly
Tue, 27 Apr 2010 10:23:49 -0500
branchRCL_2_4
changeset 1295 5e60bd109662
parent 1292 9b50c8036532
child 1297 aace84985f80
glitch on bug 11131. check the new qmake location to avoid adding duplicate Qt SDKs at IDE start-up
qt/com.nokia.carbide.cpp.qt.core/src/com/nokia/carbide/cpp/internal/qt/core/QtSDKUtils.java
--- a/qt/com.nokia.carbide.cpp.qt.core/src/com/nokia/carbide/cpp/internal/qt/core/QtSDKUtils.java	Tue Apr 27 09:07:48 2010 -0500
+++ b/qt/com.nokia.carbide.cpp.qt.core/src/com/nokia/carbide/cpp/internal/qt/core/QtSDKUtils.java	Tue Apr 27 10:23:49 2010 -0500
@@ -94,7 +94,8 @@
 	static public String getQtSDKNameForSymbianSDK(ISymbianSDK sdk){
 		
 		String epocRoot = sdk.getEPOCROOT();
-		File qtBinPath = new File (epocRoot + OLD_QT_SDK_BIN_PATH);
+		File oldQtBinPath = new File (epocRoot + OLD_QT_SDK_BIN_PATH);
+		File newQtBinPath = new Path(epocRoot).append(QT_SDK_PATH).toFile();
 		File qtIncPath = new File (epocRoot + QT_SDK_INC_PATH);
 		
 		refreshQtStoredSDKs();
@@ -107,9 +108,10 @@
 			File currBinPath = new File(qtSDK.binPath);
 			File currIncPath = new File(qtSDK.incPath);
 			
-			if (currBinPath.equals(qtBinPath) && currIncPath.equals(qtIncPath)){
-				return qtSDK.name;
-			}
+			if ( (currBinPath.equals(oldQtBinPath) && currIncPath.equals(qtIncPath)) ||
+				 (currBinPath.equals(newQtBinPath) && currIncPath.equals(qtIncPath))){
+					return qtSDK.name;
+				}
 		}
 		
 		return null;