Fix cover browser breaking if you click on a book in the bok list while cover browser is animated

This commit is contained in:
Kovid Goyal 2010-06-19 17:31:58 -06:00
parent 887b192148
commit b5e64c5405
2 changed files with 3 additions and 2 deletions

View File

@ -205,8 +205,8 @@ class CoverFlowMixin(object):
sm.select(index, sm.ClearAndSelect|sm.Rows) sm.select(index, sm.ClearAndSelect|sm.Rows)
self.library_view.setCurrentIndex(index) self.library_view.setCurrentIndex(index)
except: except:
pass import traceback
traceback.print_exc()
def sync_listview_to_cf(self, row): def sync_listview_to_cf(self, row):
self.cf_last_updated_at = time.time() self.cf_last_updated_at = time.time()

View File

@ -496,6 +496,7 @@ int PictureFlowPrivate::currentSlide() const
void PictureFlowPrivate::setCurrentSlide(int index) void PictureFlowPrivate::setCurrentSlide(int index)
{ {
animateTimer.stop();
step = 0; step = 0;
centerIndex = qBound(index, 0, slideImages->count()-1); centerIndex = qBound(index, 0, slideImages->count()-1);
target = centerIndex; target = centerIndex;