Dialog box: Choose command - the button "Rename/Copy..." changes fields

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Dialog box: Choose command - the button "Rename/Copy..." changes fields

Post by *sa16 »

Double quotation marks disappeared after "Rename/Copy..."
Example:

Code: Select all

[em_test]
cmd=""notepad.exe""
param=""%M""
[em_test_2]
cmd="notepad.exe"
param="%M"
Maybe it's a bug?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Dialog box: Choose command - the button "Rename/Copy..." changes fields

Post by *ghisler(Author) »

Yes, the function was just calling GetPrivateProfileString/WritePrivateProfileString for each entry. Unfortunately GetPrivateProfileString removes surrounding quotes, while WritePrivateProfileString doesn't re-add them by itself.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: Dialog box: Choose command - the button "Rename/Copy..." changes fields

Post by *sa16 »

Tested OK using TC 11.02rc3.
Thank you!
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Dialog box: Choose command - the button "Rename/Copy..." changes fields

Post by *white »

Moderator message from: white » 2023-10-19, 07:56 UTC

Moved to Fixed bugs.
Post Reply