• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

FFFTPのソースコードです。


Commit MetaInfo

Revision18f5d36ac7183d04feb03bbb2371666704207456 (tree)
Zeit2016-07-23 18:49:55
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs that the keyboard focus is lost.
Show the logged in user name on the title bar.

Ändern Zusammenfassung

Diff

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/FFFTP_Eng_Release_64/FFFTP.exe and b/FFFTP_Eng_Release_64/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
Binary files a/Release_64/FFFTP.exe and b/Release_64/FFFTP.exe differ
--- a/common.h
+++ b/common.h
@@ -72,16 +72,16 @@
7272 //#define PROGRAM_VERSION_NUM 1972 /* バージョン */
7373 // 64ビット対応
7474 #ifdef _WIN64
75-#define VER_STR "1.99a-20160614 64bit"
75+#define VER_STR "1.99a-20160723 64bit"
7676 #else
77-#define VER_STR "1.99a-20160614"
77+#define VER_STR "1.99a-20160723"
7878 #endif
7979 #define VER_NUM 1990 /* 設定バージョン */
8080 #define PROGRAM_VERSION_NUM 1990 /* バージョン */
8181 // ソフトウェア自動更新
8282 // リリースバージョンはリリース予定年(10進数4桁)+月(2桁)+日(2桁)+通し番号(0スタート2桁)とする
8383 // 2014年7月31日中の30個目のリリースは2014073129
84-#define RELEASE_VERSION_NUM 2016061400 /* リリースバージョン */
84+#define RELEASE_VERSION_NUM 2016072300 /* リリースバージョン */
8585
8686
8787 // SourceForge.JPによるフォーク
--- a/connect.c
+++ b/connect.c
@@ -89,6 +89,8 @@ static int Socks5SelMethod(SOCKET Socket, int *CancelCheckWork);
8989 extern char FilterStr[FILTER_EXT_LEN+1];
9090 extern char TitleHostName[HOST_ADRS_LEN+1];
9191 extern int CancelFlg;
92+// タイトルバーにユーザー名表示対応
93+extern char TitleUserName[USER_NAME_LEN+1];
9294
9395 /* 設定値 */
9496 extern char UserMailAdrs[USER_MAIL_LEN+1];
@@ -259,6 +261,8 @@ void ConnectProc(int Type, int Num)
259261 }
260262
261263 strcpy(TitleHostName, CurHost.HostName);
264+ // タイトルバーにユーザー名表示対応
265+ strcpy(TitleUserName, CurHost.UserName);
262266 DispWindowTitle();
263267 SoundPlay(SND_CONNECT);
264268
@@ -373,6 +377,8 @@ void QuickConnectProc(void)
373377 }
374378
375379 strcpy(TitleHostName, CurHost.HostAdrs);
380+ // タイトルバーにユーザー名表示対応
381+ strcpy(TitleUserName, CurHost.UserName);
376382 DispWindowTitle();
377383 SoundPlay(SND_CONNECT);
378384
@@ -582,6 +588,8 @@ void DirectConnectProc(char *unc, int Kanji, int Kana, int Fkanji, int TrMode)
582588 }
583589
584590 strcpy(TitleHostName, CurHost.HostAdrs);
591+ // タイトルバーにユーザー名表示対応
592+ strcpy(TitleUserName, CurHost.UserName);
585593 DispWindowTitle();
586594 SoundPlay(SND_CONNECT);
587595
@@ -693,6 +701,8 @@ void HistoryConnectProc(int MenuCmd)
693701 }
694702
695703 strcpy(TitleHostName, CurHost.HostAdrs);
704+ // タイトルバーにユーザー名表示対応
705+ strcpy(TitleUserName, CurHost.UserName);
696706 DispWindowTitle();
697707 SoundPlay(SND_CONNECT);
698708
--- a/main.c
+++ b/main.c
@@ -132,6 +132,8 @@ TRANSPACKET MainTransPkt; /* ファイル転送用パケット */
132132
133133 char TitleHostName[HOST_ADRS_LEN+1];
134134 char FilterStr[FILTER_EXT_LEN+1] = { "*" };
135+// タイトルバーにユーザー名表示対応
136+char TitleUserName[USER_NAME_LEN+1];
135137
136138 int CancelFlg;
137139
@@ -962,21 +964,22 @@ void DispWindowTitle(void)
962964
963965 if(AskConnecting() == YES)
964966 // 暗号化通信対応
967+ // タイトルバーにユーザー名表示対応
965968 // sprintf(Tmp, "%s (%s) - FFFTP", TitleHostName, FilterStr);
966969 {
967970 switch(AskCryptMode())
968971 {
969972 case CRYPT_NONE:
970- sprintf(Tmp, "%s (%s) %s - FFFTP", TitleHostName, FilterStr, MSGJPN351);
973+ sprintf(Tmp, "%s@%s (%s) %s - FFFTP", TitleUserName, TitleHostName, FilterStr, MSGJPN351);
971974 break;
972975 case CRYPT_FTPES:
973- sprintf(Tmp, "%s (%s) %s - FFFTP", TitleHostName, FilterStr, MSGJPN352);
976+ sprintf(Tmp, "%s@%s (%s) %s - FFFTP", TitleUserName, TitleHostName, FilterStr, MSGJPN352);
974977 break;
975978 case CRYPT_FTPIS:
976- sprintf(Tmp, "%s (%s) %s - FFFTP", TitleHostName, FilterStr, MSGJPN353);
979+ sprintf(Tmp, "%s@%s (%s) %s - FFFTP", TitleUserName, TitleHostName, FilterStr, MSGJPN353);
977980 break;
978981 case CRYPT_SFTP:
979- sprintf(Tmp, "%s (%s) %s - FFFTP", TitleHostName, FilterStr, MSGJPN354);
982+ sprintf(Tmp, "%s@%s (%s) %s - FFFTP", TitleUserName, TitleHostName, FilterStr, MSGJPN354);
980983 break;
981984 }
982985 }
--- a/toolmenu.c
+++ b/toolmenu.c
@@ -928,6 +928,7 @@ void EnableUserOpe(void)
928928 // HideUI = NO;
929929
930930 // バグ修正
931+ SetFocus(NULL);
931932 SetFocus(GetMainHwnd());
932933
933934 MakeButtonsFocus();