Prevent crash when editing master key

This commit is contained in:
Jonathan White 2019-03-22 09:01:41 -04:00
parent 38826a851d
commit bc3a7522a2

View File

@ -65,7 +65,7 @@ bool PasswordEditWidget::isPasswordVisible() const
bool PasswordEditWidget::isEmpty() const
{
return m_compUi->enterPasswordEdit->text().isEmpty();
return (visiblePage() == Page::Edit) && m_compUi->enterPasswordEdit->text().isEmpty();
}
QWidget* PasswordEditWidget::componentEditWidget()