From: s_kawamoto Date: Wed, 8 Feb 2012 13:01:43 +0000 (+0900) Subject: Change behavior of Open command if a directory in the file list is chosen. X-Git-Url: http://git.osdn.net/view?p=ffftp%2Fffftp.git;a=commitdiff_plain;h=2014dc410eb5612420fe3935554d46e9ab7ef053 Change behavior of Open command if a directory in the file list is chosen. --- diff --git a/FFFTP_Eng_Release/FFFTP.exe b/FFFTP_Eng_Release/FFFTP.exe index 828fbce..55fdec3 100644 Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ diff --git a/Release/FFFTP.exe b/Release/FFFTP.exe index 788eb77..6a4de86 100644 Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ diff --git a/main.c b/main.c index 6062861..a2bd757 100644 --- a/main.c +++ b/main.c @@ -2127,7 +2127,9 @@ void DoubleClickProc(int Win, int Mode, int App) if(Win == WIN_LOCAL) { - if((App != -1) || (Type == NODE_FILE)) + // ローカルフォルダを開く +// if((App != -1) || (Type == NODE_FILE)) + if((App != -1) || (Type == NODE_FILE) || (Mode == YES)) { if((DclickOpen == YES) || (Mode == YES)) { @@ -2573,6 +2575,13 @@ void ExecViewer(char *Fname, int App) DoPrintf("ShellExecute - %s", Fname); ShellExecute(NULL, "open", Fname, NULL, CurDir, SW_SHOW); } + // ローカルフォルダを開く + else if((App == -1) && (GetFileAttributes(Fname) & FILE_ATTRIBUTE_DIRECTORY)) + { + MakeDistinguishableFileName(ComLine, Fname); + DoPrintf("ShellExecute - %s", Fname); + ShellExecute(NULL, "open", ComLine, NULL, Fname, SW_SHOW); + } else { App = max1(0, App);