mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Do not partly update an entry when different passwords are supplied.
This commit is contained in:
parent
d85e5d7560
commit
48f8b1a116
@ -123,13 +123,13 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, const QString& groupN
|
||||
|
||||
void EditEntryWidget::saveEntry()
|
||||
{
|
||||
m_entry->setTitle(m_mainUi->titleEdit->text());
|
||||
m_entry->setUsername(m_mainUi->usernameEdit->text());
|
||||
m_entry->setUrl(m_mainUi->urlEdit->text());
|
||||
if (!passwordsEqual()) {
|
||||
QMessageBox::warning(this, tr("Error"), tr("Different passwords supplied."));
|
||||
return;
|
||||
}
|
||||
m_entry->setTitle(m_mainUi->titleEdit->text());
|
||||
m_entry->setUsername(m_mainUi->usernameEdit->text());
|
||||
m_entry->setUrl(m_mainUi->urlEdit->text());
|
||||
m_entry->setPassword(m_mainUi->passwordEdit->text());
|
||||
m_entry->setExpires(m_mainUi->expireCheck->isChecked());
|
||||
QDateTime dateTime(m_mainUi->expireDatePicker->dateTime());
|
||||
|
Loading…
Reference in New Issue
Block a user