Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Delete files in book browser can leave no tabs open #1233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Open a new book
Add 4 new html files
Close every tab but the first one in the book browser
Select the first and second tabs
Delete
-> no tab is left

Patch attached to check and open one of the remaining html files if necessary, 
but this isn't really the best approach since it opens either a random or the 
last html entry instead of the first.  Using EmitResourceActivated( 
m_OPFModel.GetFirstHTMLModelIndex() );  doesn't work as it core dumps since the 
list of names isn't updated by the time it runs.

Original issue reported on code.google.com by meme90...@gmail.com on 6 Feb 2012 at 6:01

Attachments:

GoogleCodeExporter commented 9 years ago
Patch removed.  Merging into 1238 since it has fixes for this issue and that 
one is more relevant to users

Original comment by meme90...@gmail.com on 7 Feb 2012 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20