Continous loop if cancel custom INI file confirm dialog

Advertisement

Sopor
Sopor avatar
Joined:
Posts:
60
Location:
Sweden

Continous loop if cancel custom INI file confirm dialog

If i change the path to the INI file and i change my mind and press Cancel i get in to a loop so it is very hard to close the preference window.

Start with a custom ini path. Then open prefs and select another WinSCP.ini and when it ask you to overwrite or use you instead press cancel. If you press cancel to close prefs it will ask you again and again and again.

I have attached a video to show what i mean.
Hmm, i get a message that the file is empty so i can't attach any video and now i can't remove the file name so i can't post it. I was needed to create a complete new post :(

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: Continous loop if cancel custom INI file confirm dialog

Thanks for your report.
I'll try to improve it.
But note that you can use the X button or Esc key.

Reply with quote

Sopor
Sopor avatar
Joined:
Posts:
60
Location:
Sweden

Re: Continous loop if cancel custom INI file confirm dialog

martin wrote:

Thanks for your report.
I'll try to improve it.
But note that you can use the X button or Esc key.

I don't understand how the X could be different from Cancel? Shouldn't cancel be the same as X and vise versed?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: Continous loop if cancel custom INI file confirm dialog

Sopor wrote:

I don't understand how the X could be different from Cancel? Shouldn't cancel be the same as X and vise versed?
A button is a control. When you click a button with a mouse, it has two effects: 1) The button receives focus (and consequently the current control loses the focus). 2) Button action is executed (in this case, the dialog would be canceled).
It's losing of the focus of the INI path edit box that triggers the validation. The validation fails, the edit box never loses the focus and the Cancel button is effectively never clicked.
While the X button is not a control, it cannot receive focus, it merely cancels the dialog. So no validation occurs.

Anyway, this issue has been added to the tracker:
https://winscp.net/tracker/1763

Reply with quote

Advertisement

You can post new topics in this forum