bugfix: stop preview's animation when hide preview

Change-Id: Ie04c83241b26e069d15dd31c8feb853398771c1f
This commit is contained in:
杨万青 2015-10-19 16:10:52 +08:00
parent 99cf01434a
commit ce78366610
Notes: Deepin Code Review 2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: <mr.asianwang@gmail.com>
Submitted-by: <mr.asianwang@gmail.com>
Submitted-at: Mon, 19 Oct 2015 16:25:12 +0800
Reviewed-on: https://cr.deepin.io/7862
Project: dde/dde-dock
Branch: refs/heads/master

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);
}