You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/01/15 00:31:56 UTC

svn commit: r1433214 - /flex/sdk/branches/develop/mustella/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml

Author: aharui
Date: Mon Jan 14 23:31:56 2013
New Revision: 1433214

URL: http://svn.apache.org/viewvc?rev=1433214&view=rev
Log:
Fix restoring last open folder on Windows

Modified:
    flex/sdk/branches/develop/mustella/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml

Modified: flex/sdk/branches/develop/mustella/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml?rev=1433214&r1=1433213&r2=1433214&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml (original)
+++ flex/sdk/branches/develop/mustella/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml Mon Jan 14 23:31:56 2013
@@ -65,6 +65,12 @@
 				{
 					lastFolder = lastFolder.substring(7);
 				}
+				if (lastFolder.charAt(0) == "/" && lastFolder.charAt(2) == ":")
+				{
+					// windows
+					lastFolder = lastFolder.substring(1);
+					lastFolder = lastFolder.replace(/\//g, "\\");
+				}
 				fs.openSubdirectory(lastFolder);
 				fs.selectedPath = lastFolder;
 				fs.validateNow();