View Single Post
Old 12-13-2013, 09:10 AM   #330
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,257
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Problem with TOC view combined with Bulk renaming

@kovid,

I'm getting an error in these circumstances:
  1. Open the TOC view
  2. Select all the text files and do a Bulk Rename
  3. Select a text file from the TOC view rather than the Files Browser.

It looks like the TOC viewer is remembering the old filename rather than using the new filename. The workaround is to close the TOC viewer then open it again.

This is the error message:
Spoiler:
Code:
calibre, version 1.15.0
ERROR: Unhandled exception: <b>KeyError</b>:u'Man_Smoke_split_003.html'

calibre 1.15  isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 69, in ans
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 712, in link_clicked
KeyError: u'Man_Smoke_split_003.html'


Edit: Right-click Refresh on TOC view also fixes it, so maybe it just needs a suitable message to remind the user to do the refresh.

Last edited by jackie_w; 12-13-2013 at 09:18 AM.
jackie_w is offline