TC 8.5 Beta 15 search dialog is stuck (cannot be closed)

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Csimbi
Member
Member
Posts: 105
Joined: 2004-06-16, 08:27 UTC

TC 8.5 Beta 15 search dialog is stuck (cannot be closed)

Post by *Csimbi »

I'm not sure how to explain, so I'll just explain the steps to get there (works for me every time).

1. Start TC and select two different dirs on the two panels, containing the same file with different contents (e.g. two different versions of the same text file, code, or whatever) and make sure the cursor rests on the file you want to compare and that file is open in an external editor (e.g. Visual Studio).
2. Select Files->Compare by content.
3. Leave the compare dialog alone, go back to TC and hit ALT+F7 to search.
4. Search for something. e.g. *.cpp, find text: std::string
5. Now go back to Visual Studio (or whatever editor you use) and save the file. This will force TC to display a "files modified, recompare?" dialog over the compare contents window - switch to this window, but do not click yes or no, rather go to next step...
6. Switch back to TC (which is still showing the search dialog) and try to close the dialog. ESC won't work; CTRL+F4 won't work, ALT+F4 won't work, the Cancel button won't work, the little 'x' in the top right corner won't work. The search dialog simply cannot be closed until you will have clicked yes or no in the compare contents dialog.

Maybe the window stack is messed up when one clicks on the compare dialog and continues elsewhere without disposing of the yes/no dialog first?

I would like to retain the current behaviour (not having to click yes or no unless I really want to).

Thanks for fixing.

Windows 7 X64 SP1 + hotfixes to date.
TC 8.5 Beta 15 x64

Edit:
There's another bug associated with the same procedure (and I am guessing the fix is the same):
In step 6, go to a Lister window (which you had opened before the yes/no pops up), double-click on a word and hit CTRL+C. This is what goes on the clipboard (instead of the word):

Code: Select all

---------------------------
Compare contents
---------------------------
File(s) modified, recompare?
---------------------------
Yes   No   
---------------------------
If you copy using the right-click pop-up menu, it'll work - but I guess everyone uses keyboard shortcuts...
Best regards: Csimbi
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Csimbi
Member
Member
Posts: 105
Joined: 2004-06-16, 08:27 UTC

Post by *Csimbi »

I don't think it's the same thing at all.
Did Christian see this bug report?
Best regards: Csimbi
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, and it's the same thing: It's caused by the Windows MessageBox function, which is used here too.
Author of Total Commander
https://www.ghisler.com
Post Reply