Multiple DatabaseTabWidget fixes.

Close databases on exit. Ask to save changes on database close.
Remove database from db list on database close.
Delete file pointer on database close.
Require to set master key at database creation time.
Append "*" to tabname if database is modified.
Handle database modified signals in database tab widget.
This commit is contained in:
Florian Geyer 2012-04-11 20:35:52 +02:00 committed by Felix Geyer
parent e39827d777
commit a058dcee5d
6 changed files with 97 additions and 11 deletions

View file

@ -155,6 +155,11 @@ void DatabaseWidget::updateMasterKey(bool accepted)
{
if (accepted) {
m_db->setKey(m_changeMasterKeyWidget->newMasterKey());
}
else if (m_db->transformedMasterKey().isEmpty()) { // TODO other test?
Q_EMIT closeRequest();
return;
}
setCurrentIndex(0);