Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[8.0ß25] Switching tab while deleting - tab changed

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs Printable version
View previous topic :: View next topic  
Author Message
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Mon Apr 16, 2012 10:22 am    Post subject: [8.0ß25] Switching tab while deleting - tab changed Reply with quote

0. Prepare some directory with unneeded files to be deleted, large enough so that deleting took some significant time (several seconds at least). Make sure there are no read-only, hidden or system files, so that deleting went without interruptions.
1. Start TC with clean INI.
2. In the left panel open two tabs with different paths in them. In the second tab navigate to the directory from the step 0 and set cursor on it.
3. Press Shift+Del, agree to all the confirmations, send deleting progress to the background.
4. While data are being deleted, press Ctrl+Tab to switch to the first tab, but do not release Ctrl, so that tab switch did not actually occur. Keep holding Ctrl until the background deleting finishes.
5. When deleting finishes, the path in the first tab (which is being hold by you) suddenly changes and becomes equal to that of the second tab. So does the tab title.

Tested in TC 8.0β25 x32 and x64, Win7 x64 SP1.
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 8.01 / Win7 x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Wed Apr 18, 2012 8:33 am    Post subject: Reply with quote

Well, that's multitasking - I doubt that I can do much about it...
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Wed Apr 18, 2012 9:52 am    Post subject: Reply with quote

ghisler(Author)
Sorry, I didn't get you. Multitasking usually means running multiple tasks which do not interfere each other. But in this case a backgroung operation (the one usually sent into background and forgotten about) suddenly changed my foreground working environment. I was lucky to notice that, because the lists of files/dirs were too different. Otherwise I might end in a different directory and do some unwanted actions there, for example, delete some more files, thinking they are old backup copies, while being actually in the directory with the newest versions of my files…
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 8.01 / Win7 x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Fri Apr 20, 2012 10:43 am    Post subject: Reply with quote

Well, what should I do? Halt all background threads while the user does Ctrl+Tab? I don't think that this is feasible.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Fri Apr 20, 2012 11:35 am    Post subject: Reply with quote

ghisler(Author)
It's not obvious to me why a background thread should change the current tab's directory in the main TC window. I understand that it probably sends some signal so that TC refreshed the original tab contents after the operation is finished (to display the changed contents), but is it really completely impossible to prevent this action when TC is in the "tab-switching" state? Even more, TC could simply block all the re-reading signals while in this state, because they are just useless then — it might be easier to implement it that way.
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 8.01 / Win7 x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Mon Apr 23, 2012 6:54 am    Post subject: Reply with quote

OK, I will try that. However, there are many other states which should be handled like this - it's just not feasible to handle them all, sorry.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Mon Apr 23, 2012 7:20 am    Post subject: Reply with quote

ghisler(Author) wrote:
OK, I will try that.

Thank you, that's all I ask for.
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 8.01 / Win7 x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 662

PostPosted: Sat Apr 28, 2012 4:25 am    Post subject: Reply with quote

I can confirm that TC8 rc1 fixes this issue.
_________________
Windows 7 Pro x64, Windows 8 Pro x64
Back to top
View user's profile Send private message Send e-mail
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Sat Apr 28, 2012 5:08 am    Post subject: Reply with quote

Fixed in 8.0rc1. Thanks very much! Smile
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 8.01 / Win7 x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Mon Apr 30, 2012 7:38 am    Post subject: Reply with quote

Thanks!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group