Disable apply button when creating new entry/group
* Workaround to prevent data loss if apply is hit but not OK or Cancel * Refactor required to fix this issue
This commit is contained in:
committed by
Jonathan White
parent
d70a474bac
commit
3b1e15ea1a
@@ -597,7 +597,8 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, bool history, const Q
|
||||
}
|
||||
|
||||
setForms(entry);
|
||||
setReadOnly(m_history);
|
||||
// Disable apply button if creating new entry (#2191)
|
||||
setReadOnly(m_history, !m_create);
|
||||
|
||||
setCurrentPage(0);
|
||||
setPageHidden(m_historyWidget, m_history || m_entry->historyItems().count() < 1);
|
||||
@@ -802,7 +803,6 @@ void EditEntryWidget::acceptEntry()
|
||||
{
|
||||
if (commitEntry()) {
|
||||
clear();
|
||||
hideMessage();
|
||||
emit editFinished(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user