Skip to content

Commit

Permalink
fix(passwdeditanimated): hide alert flash.
Browse files Browse the repository at this point in the history
Change-Id: I1d83d7f928269bd1ef82fb116b0211ce06f15d53
  • Loading branch information
rekols committed Nov 8, 2018
1 parent a0a724e commit faaa4ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/widgets/dpasswdeditanimated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void DPasswdEditAnimatedPrivate::init()

m_passwdEdit->setEchoMode(QLineEdit::Password);
m_passwdEdit->setFrame(false);
m_passwdEdit->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
m_passwdEdit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_passwdEdit->installEventFilter(q);
q->setFocusPolicy(Qt::StrongFocus);
q->setFocusProxy(m_passwdEdit);
Expand Down Expand Up @@ -472,12 +472,10 @@ void DPasswdEditAnimated::hideAlert()
D_D(DPasswdEditAnimated);

if (d->m_invalidTip->isVisible()) {
d->m_invalidMessage->hide();
d->m_invalidTip->hide();
d->m_invalidTip->setVisible(false);

Q_EMIT alertChanged(false);
}

}

/**
Expand Down

0 comments on commit faaa4ee

Please sign in to comment.