Commit e3934f46 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix leak in quick dialogs

parent 58f98568
......@@ -387,12 +387,12 @@ void GotoSymbolWidget::updateViewGeometry()
move(xPos, yPos);
QPointer<QPropertyAnimation> animation = new QPropertyAnimation(this, "size");
QPropertyAnimation *animation = new QPropertyAnimation(this, "size");
animation->setDuration(150);
animation->setStartValue(this->size());
animation->setEndValue(viewSize);
animation->start();
animation->start(QPropertyAnimation::DeleteWhenStopped);
}
void GotoSymbolWidget::reselectFirst()
......
......@@ -384,10 +384,10 @@ void KateQuickOpen::updateViewGeometry()
const QPoint p(xPos, yPos);
move(p + m_mainWindow->pos());
QPointer<QPropertyAnimation> animation = new QPropertyAnimation(this, "size");
QPropertyAnimation *animation = new QPropertyAnimation(this, "size");
animation->setDuration(150);
animation->setStartValue(this->size());
animation->setEndValue(viewSize);
animation->start();
animation->start(QAbstractAnimation::DeleteWhenStopped);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment