Loweynet
Revisão | 2014dc410eb5612420fe3935554d46e9ab7ef053 (tree) |
---|---|
Hora | 2012-02-08 22:01:43 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Change behavior of Open command if a directory in the file list is chosen.
@@ -2127,7 +2127,9 @@ void DoubleClickProc(int Win, int Mode, int App) | ||
2127 | 2127 | |
2128 | 2128 | if(Win == WIN_LOCAL) |
2129 | 2129 | { |
2130 | - if((App != -1) || (Type == NODE_FILE)) | |
2130 | + // ローカルフォルダを開く | |
2131 | +// if((App != -1) || (Type == NODE_FILE)) | |
2132 | + if((App != -1) || (Type == NODE_FILE) || (Mode == YES)) | |
2131 | 2133 | { |
2132 | 2134 | if((DclickOpen == YES) || (Mode == YES)) |
2133 | 2135 | { |
@@ -2573,6 +2575,13 @@ void ExecViewer(char *Fname, int App) | ||
2573 | 2575 | DoPrintf("ShellExecute - %s", Fname); |
2574 | 2576 | ShellExecute(NULL, "open", Fname, NULL, CurDir, SW_SHOW); |
2575 | 2577 | } |
2578 | + // ローカルフォルダを開く | |
2579 | + else if((App == -1) && (GetFileAttributes(Fname) & FILE_ATTRIBUTE_DIRECTORY)) | |
2580 | + { | |
2581 | + MakeDistinguishableFileName(ComLine, Fname); | |
2582 | + DoPrintf("ShellExecute - %s", Fname); | |
2583 | + ShellExecute(NULL, "open", ComLine, NULL, Fname, SW_SHOW); | |
2584 | + } | |
2576 | 2585 | else |
2577 | 2586 | { |
2578 | 2587 | App = max1(0, App); |