glitch on bug 11131. check the new qmake location to avoid adding duplicate Qt SDKs at IDE start-up
authortimkelly
Tue, 27 Apr 2010 10:18:58 -0500
changeset 1294 76455ae5d5fd
parent 1293 be3d8ca5bafe
child 1296 9d0235f04d6d
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:53:16 2010 -0500
+++ b/qt/com.nokia.carbide.cpp.qt.core/src/com/nokia/carbide/cpp/internal/qt/core/QtSDKUtils.java	Tue Apr 27 10:18:58 2010 -0500
@@ -95,7 +95,8 @@
 	static public String getQtSDKNameForSymbianSDK(ISymbianSDK sdk){
 		
 		String epocRoot = sdk.getEPOCROOT();
-		File qtBinPath = new Path(epocRoot).append(OLD_QT_SDK_BIN_PATH).toFile();
+		File oldQtBinPath = new Path(epocRoot).append(OLD_QT_SDK_BIN_PATH).toFile();
+		File newQtBinPath = new Path(epocRoot).append(QT_SDK_PATH).toFile();
 		File qtIncPath = new Path(epocRoot).append(QT_SDK_INC_PATH).toFile();
 		
 		refreshQtStoredSDKs();
@@ -108,7 +109,8 @@
 			File currBinPath = new File(qtSDK.binPath);
 			File currIncPath = new File(qtSDK.incPath);
 			
-			if (currBinPath.equals(qtBinPath) && currIncPath.equals(qtIncPath)){
+			if ( (currBinPath.equals(oldQtBinPath) && currIncPath.equals(qtIncPath)) ||
+				 (currBinPath.equals(newQtBinPath) && currIncPath.equals(qtIncPath))){
 				return qtSDK.name;
 			}
 		}