• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision9893 (tree)
Time2022-04-27 00:59:34
Authorzmatsuo

Log Message

ファイルドロップ時の処理を忘れてしまう

- forget check (always "SCP" checked)

- when
- ssh
- "Send file (Paste content of file)" is checked
- (or "Paste Filename" is checked)
- "Do same process, next drop" is checked
- then, next dorp
- "SCP" is checked
- "Send file (Paste content of file)" is not checked

- check "binary"

- When File Drag and Drop Dialog first is opened
- And "Send file (Paste content of file)" is checked
- And TransBin=on
- But "SCP" is checked when ssh
- "Send file (Paste content of file)" checked when telnet,serial..

ticket #44442

Change Summary

Incremental Difference

--- branches/4-stable/doc/en/html/about/history.html (revision 9892)
+++ branches/4-stable/doc/en/html/about/history.html (revision 9893)
@@ -46,6 +46,7 @@
4646 <!--li>telnet(cygterm)接続時、NAWS(Negotiate About Window Size)が送られてきたときウィンドウサイズを誤って設定する可能性があったので修正。</li-->
4747 <li>MACRO: the file created with <a href="../macro/command/filecreate.html">filecreate</a> command can not be read without fileclose. This bug was introduced in 4.102.</li>
4848 <!--li>ログ取得中に表示されるログダイアログのヘルプボタンを押すと Send File のヘルプが表示される問題を修正した</li-->
49+ <!--li>SSH接続時、ファイルドロップ時の処理を次回も行うよう指定しても、SCPが選択される問題を修正した。</li-->
4950 </ul>
5051 </li>
5152
--- branches/4-stable/doc/ja/html/about/history.html (revision 9892)
+++ branches/4-stable/doc/ja/html/about/history.html (revision 9893)
@@ -46,6 +46,7 @@
4646 <li>telnet(cygterm)接続時、NAWS(Negotiate About Window Size)が送られてきたときウィンドウサイズを誤って設定する可能性があったので修正。</li>
4747 <li><a href="../macro/command/filecreate.html">filecreate</a> マクロコマンドで作成したファイルをfilecloseせずに読み込みができなかったので修正。4.102でエンバグ。</li>
4848 <li>ログ取得中に表示されるログダイアログのヘルプボタンを押すと Send File のヘルプが表示される問題を修正した</li>
49+ <li>SSH接続時、ファイルドロップ時の処理を次回も行うよう指定しても、SCPが選択される</li>
4950 </ul>
5051 </li>
5152
--- branches/4-stable/teraterm/teraterm/dnddlg.cpp (revision 9892)
+++ branches/4-stable/teraterm/teraterm/dnddlg.cpp (revision 9893)
@@ -156,7 +156,7 @@
156156 // focus to "SCP dest textbox" or "Cancel"
157157 {
158158 int focus_id;
159- if (Param->ScpEnable) {
159+ if (Param->DropType == DROP_TYPE_SCP) {
160160 focus_id = IDC_SCP_PATH;
161161 } else {
162162 focus_id = IDCANCEL;
--- branches/4-stable/teraterm/teraterm/vtwin.cpp (revision 9892)
+++ branches/4-stable/teraterm/teraterm/vtwin.cpp (revision 9893)
@@ -2043,7 +2043,12 @@
20432043 }
20442044 }
20452045
2046-LRESULT CVTWindow::OnDropNotify(WPARAM ShowDialog, LPARAM lParam)
2046+/**
2047+ * ファイルがドロップされた
2048+ * @param ShowDialog 0 表示しても表示しなくても良い
2049+ * 1 必ず表示する
2050+ */
2051+LRESULT CVTWindow::OnDropNotify(WPARAM ShowDialog, LPARAM)
20472052 {
20482053 // iniに保存されない、今実行しているTera Termでのみ有効な設定
20492054 static enum drop_type DefaultDropType = DROP_TYPE_CANCEL;
@@ -2050,7 +2055,6 @@
20502055 static unsigned char DefaultDropTypePaste = DROP_TYPE_PASTE_ESCAPE;
20512056 static bool DefaultShowDialog = ts.ConfirmFileDragAndDrop ? true : false;
20522057
2053- (void)lParam;
20542058 int FileCount = 0;
20552059 int DirectoryCount = 0;
20562060 for (int i = 0; i < DropListCount; i++) {
@@ -2116,6 +2120,9 @@
21162120 }
21172121 DoSameProcess = false;
21182122 }
2123+ if (DropType == DROP_TYPE_SEND_FILE && ts.TransBin) {
2124+ DropType = DROP_TYPE_SEND_FILE_BINARY;
2125+ }
21192126 } else {
21202127 if (DirectoryCount > 0 &&
21212128 (DefaultDropType == DROP_TYPE_SEND_FILE ||
Show on old repository browser