mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-22 22:04:48 -04:00
Close database without asking when unmodified.
Don't ask for confirmation when closing/locking a database and - it's in edit entry mode - there haven't been any modifications Refs #511
This commit is contained in:
parent
cf8186312a
commit
8a50ee8b22
5 changed files with 32 additions and 2 deletions
|
@ -194,6 +194,18 @@ bool DatabaseWidget::isInEditMode() const
|
|||
return currentMode() == DatabaseWidget::EditMode;
|
||||
}
|
||||
|
||||
bool DatabaseWidget::isEditWidgetModified() const
|
||||
{
|
||||
if (currentWidget() == m_editEntryWidget) {
|
||||
return m_editEntryWidget->hasBeenModified();
|
||||
}
|
||||
else {
|
||||
// other edit widget don't have a hasBeenModified() method yet
|
||||
// assume that they already have been modified
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
QList<int> DatabaseWidget::splitterSizes() const
|
||||
{
|
||||
return m_splitter->sizes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue