• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Loweynet


Commit MetaInfo

Revisão2014dc410eb5612420fe3935554d46e9ab7ef053 (tree)
Hora2012-02-08 22:01:43
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Mensagem de Log

Change behavior of Open command if a directory in the file list is chosen.

Mudança Sumário

Diff

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/main.c
+++ b/main.c
@@ -2127,7 +2127,9 @@ void DoubleClickProc(int Win, int Mode, int App)
21272127
21282128 if(Win == WIN_LOCAL)
21292129 {
2130- if((App != -1) || (Type == NODE_FILE))
2130+ // ローカルフォルダを開く
2131+// if((App != -1) || (Type == NODE_FILE))
2132+ if((App != -1) || (Type == NODE_FILE) || (Mode == YES))
21312133 {
21322134 if((DclickOpen == YES) || (Mode == YES))
21332135 {
@@ -2573,6 +2575,13 @@ void ExecViewer(char *Fname, int App)
25732575 DoPrintf("ShellExecute - %s", Fname);
25742576 ShellExecute(NULL, "open", Fname, NULL, CurDir, SW_SHOW);
25752577 }
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+ }
25762585 else
25772586 {
25782587 App = max1(0, App);