[Ttssh2-commit] [3328] ・UseOneSettingのデフォルトをonに変更

svnno****@sourc***** svnno****@sourc*****
2009年 4月 18日 (土) 22:16:16 JST


Revision: 3328
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3328
Author:   doda
Date:     2009-04-18 22:16:15 +0900 (Sat, 18 Apr 2009)

Log Message:
-----------
・UseOneSettingのデフォルトをonに変更
・UseOneSettingにon/off以外の正しくない値が指定されていた場合はonとして扱うように変更

Modified Paths:
--------------
    trunk/TTXKanjiMenu/ttxkanjimenu.c
    trunk/installer/teraterm.iss


-------------- next part --------------
Modified: trunk/TTXKanjiMenu/ttxkanjimenu.c
===================================================================
--- trunk/TTXKanjiMenu/ttxkanjimenu.c	2009-04-18 11:30:54 UTC (rev 3327)
+++ trunk/TTXKanjiMenu/ttxkanjimenu.c	2009-04-18 13:16:15 UTC (rev 3328)
@@ -64,7 +64,7 @@
 	pvar->cv = cv;
 	pvar->origReadIniFile = NULL;
 	pvar->origWriteIniFile = NULL;
-	pvar->UseOneSetting = FALSE;
+	pvar->UseOneSetting = TRUE;
 }
 
 static BOOL FAR PASCAL TTXKanjiMenuSetupTerminal(HWND parent, PTTSet ts) {
@@ -111,8 +111,11 @@
 	/* Call original ReadIniFile */
 	pvar->origReadIniFile(fn, ts);
 
-	GetPrivateProfileString(IniSection, "UseOneSetting", "off", buff, sizeof(buff), fn);
-	if (_stricmp(buff, "on") == 0) {
+	GetPrivateProfileString(IniSection, "UseOneSetting", "on", buff, sizeof(buff), fn);
+	if (_stricmp(buff, "off") == 0) {
+		pvar->UseOneSetting = FALSE;
+	}
+	else {
 		pvar->UseOneSetting = TRUE;
 		if (pvar->ts->KanjiCode == IdUTF8m) {
 			pvar->ts->KanjiCodeSend = IdUTF8;

Modified: trunk/installer/teraterm.iss
===================================================================
--- trunk/installer/teraterm.iss	2009-04-18 11:30:54 UTC (rev 3327)
+++ trunk/installer/teraterm.iss	2009-04-18 13:16:15 UTC (rev 3328)
@@ -151,8 +151,8 @@
 Filename: {userdocs}\teraterm.ini; Section: Tera Term; Key: DisableMenuSendBreak; String: off; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: TeraTerm
 Filename: {app}\teraterm.ini; Section: Tera Term; Key: PasteDialogSize; String: 330,220; Flags: createkeyifdoesntexist; Components: TeraTerm
 Filename: {userdocs}\teraterm.ini; Section: Tera Term; Key: PasteDialogSize; String: 330,220; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: TeraTerm
-Filename: {app}\teraterm.ini; Section: TTXKanjiMenu; Key: UseOneSetting; String: off; Flags: createkeyifdoesntexist; Components: Additional_Plugins/TTXKanjiMenu
-Filename: {userdocs}\teraterm.ini; Section: TTXKanjiMenu; Key: UseOneSetting; String: off; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: Additional_Plugins/TTXKanjiMenu
+Filename: {app}\teraterm.ini; Section: TTXKanjiMenu; Key: UseOneSetting; String: on; Flags: createkeyifdoesntexist; Components: Additional_Plugins/TTXKanjiMenu
+Filename: {userdocs}\teraterm.ini; Section: TTXKanjiMenu; Key: UseOneSetting; String: on; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: Additional_Plugins/TTXKanjiMenu
 Filename: {app}\teraterm.ini; Section: TTSSH; Key: ForwardAgent; String: 0; Flags: createkeyifdoesntexist; Components: TTSSH
 Filename: {userdocs}\teraterm.ini; Section: TTSSH; Key: ForwardAgent; String: 0; Flags: createkeyifdoesntexist; Check: isUserIniExists; Components: TTSSH
 Filename: {app}\teraterm.ini; Section: Tera Term; Key: EnableBoldAttrColor; String: on; Flags: createkeyifdoesntexist; Components: TeraTerm



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