mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix cover browser breaking if you click on a book in the bok list while cover browser is animated
This commit is contained in:
parent
887b192148
commit
b5e64c5405
@ -205,8 +205,8 @@ class CoverFlowMixin(object):
|
||||
sm.select(index, sm.ClearAndSelect|sm.Rows)
|
||||
self.library_view.setCurrentIndex(index)
|
||||
except:
|
||||
pass
|
||||
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def sync_listview_to_cf(self, row):
|
||||
self.cf_last_updated_at = time.time()
|
||||
|
@ -496,6 +496,7 @@ int PictureFlowPrivate::currentSlide() const
|
||||
|
||||
void PictureFlowPrivate::setCurrentSlide(int index)
|
||||
{
|
||||
animateTimer.stop();
|
||||
step = 0;
|
||||
centerIndex = qBound(index, 0, slideImages->count()-1);
|
||||
target = centerIndex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user