Folder's 'sort by size' canceled when TC loses focus

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Kole
Junior Member
Junior Member
Posts: 2
Joined: 2008-05-03, 13:38 UTC
Location: Serbia

Folder's 'sort by size' canceled when TC loses focus

Post by *Kole »

First, similar bug was reported in "Selected folder status dissappears on changing focus" thread in "TC7.5 Fixed bugs" subforum (board doesn't allow me to add link in thread...).

I posted this bug report in that thread (they confirmed it there) but it seems that I have to make new thread because it's different bug.

Steps to reproduce:

1. Go to Configuration -> Display
2. Set "Sorting directories" to "Like files (also by time)"
3. Click OK
4. Browse to folder with many subfolders
5. Press Alt+Shift+Enter
6. Sort by Size
7. (optional step) Select some folders
8. Focus another application
9. Focus T.C.

Folders are deselected and their size is no longer displayed (they are sorted by name now)

T.C. 7.50 pb5 and Windows 7 RC 32-bit.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Confirmed.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think this happens because TC updates window and loses dirs sizes (cm_CountDirContent doesn't calls automatically). Though, I think in such case it is not a good idea to sort folders by size, it is better to keep prev order.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Kole.

As has been confirmed in the Fixed Bugs thread, the reported behaviour is not new in T.C. 7.50 pb5, it can be observed in T.C. 7.04a as well.
Confirmed.
It can be reproduced e.g. on Windows XP Prof SP2, 32bit, too, by following the steps you have given (steps 5. and 6. should be swapped I assume in order to sort the folders by their sizes - first calculate, next sort, not vice versa - at least this is what I did)
[...]

Note:
No changes occur inside the folders while switching away from and back to T.C. So the folder sizes do not change.

Environment:
+ Windows XP Prof, SP2, 32bit
+ Total Commander 7.50 PB5
+ Total Commander 7.04a
Kind regards,
Karl
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, MVV.
I think this happens because TC updates window and loses dirs sizes (cm_CountDirContent doesn't calls automatically).
T.C. will update its file panels whenever it gets back the focus.

Yet, as the other thread, Selected folder status dissappears on changing focus, shows T.C. 7.50 PB5 will still display the calculated folder sizes and preserve the status "selected" in case folders are always sorted by name, although T.C. looses the focuse and gets it back.

It only looses the folder sizes and the select satus in case folders are sorted like files, in this case by their sizes.

So T.C. can preserve the foldersizes and the selected status even though it looses the focus and gets it back, i.e. although the file panels get refreshed.

The difference really only is that in Kole's case folders have been sorted by their sizes and not by their names.

Kind regards,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it happens when TC thinks that the file list has changed and requires an update, probably because the checksum is different due to the different sort order. I will check whether there is a solution or not.
Author of Total Commander
https://www.ghisler.com
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

TC7.50pb6: seems to be fixed!
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Could also confirm it in BP5. (didnt saw the thread)
Seems to be fixed in PB6.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply