mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Prevent crash when editing master key
This commit is contained in:
@@ -65,7 +65,7 @@ bool PasswordEditWidget::isPasswordVisible() const
|
|||||||
|
|
||||||
bool PasswordEditWidget::isEmpty() const
|
bool PasswordEditWidget::isEmpty() const
|
||||||
{
|
{
|
||||||
return m_compUi->enterPasswordEdit->text().isEmpty();
|
return (visiblePage() == Page::Edit) && m_compUi->enterPasswordEdit->text().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget* PasswordEditWidget::componentEditWidget()
|
QWidget* PasswordEditWidget::componentEditWidget()
|
||||||
|
|||||||
Reference in New Issue
Block a user