[Ttssh2-commit] [3300] AcceptTitleChangeRequest が overwrite の時のみリモートタイトルをクリアするように変更。

svnno****@sourc***** svnno****@sourc*****
2009年 4月 10日 (金) 19:03:37 JST


Revision: 3300
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3300
Author:   doda
Date:     2009-04-10 19:03:37 +0900 (Fri, 10 Apr 2009)

Log Message:
-----------
AcceptTitleChangeRequest が overwrite の時のみリモートタイトルをクリアするように変更。

Modified Paths:
--------------
    trunk/teraterm/teraterm/ttdde.c
    trunk/teraterm/teraterm/vtwin.cpp


-------------- next part --------------
Modified: trunk/teraterm/teraterm/ttdde.c
===================================================================
--- trunk/teraterm/teraterm/ttdde.c	2009-04-10 08:23:56 UTC (rev 3299)
+++ trunk/teraterm/teraterm/ttdde.c	2009-04-10 10:03:37 UTC (rev 3300)
@@ -586,7 +586,9 @@
 		break;
 	case CmdSetTitle:
 		strncpy_s(ts.Title, sizeof(ts.Title),ParamFileName, _TRUNCATE);
-		cv.TitleRemote[0] = '\0';
+		if (ts.AcceptTitleChangeRequest == IdTitleChangeRequestOverwrite) {
+			cv.TitleRemote[0] = '\0';
+		}
 		ChangeTitle();
 		break;
 	case CmdShowTT:

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2009-04-10 08:23:56 UTC (rev 3299)
+++ trunk/teraterm/teraterm/vtwin.cpp	2009-04-10 10:03:37 UTC (rev 3300)
@@ -3872,7 +3872,8 @@
 #endif
 
 		// ƒ^ƒCƒgƒ‹‚ª•ÏX‚³‚ê‚Ä‚¢‚½‚çAƒŠƒ‚[ƒgƒ^ƒCƒgƒ‹‚ðƒNƒŠƒA‚·‚é
-		if (strcmp(orgTitle, ts.Title) != 0) {
+		if ((ts.AcceptTitleChangeRequest == IdTitleChangeRequestOverwrite) &&
+		    (strcmp(orgTitle, ts.Title) != 0)) {
 			cv.TitleRemote[0] = '\0';
 		}
 



Ttssh2-commit メーリングリストの案内