Merge "bugfix: stop preview's animation when hide preview"

This commit is contained in:
mr.asianwang 2015-10-19 16:25:12 +08:00 committed by Deepin Code Review
commit 939c4acd93

View File

@ -42,8 +42,10 @@ void PreviewFrame::hidePreview(int interval)
{
m_showTimer->stop();
if (interval <= 0)
if (interval <= 0) {
m_animation->stop();
hide();
}
else
m_hideTimer->start(interval);
}