Disable/enable menu actions depending on what currently can be done.
This commit is contained in:
committed by
Felix Geyer
parent
eb4f82a7ed
commit
fec19b475e
@@ -185,6 +185,11 @@ void DatabaseWidget::switchToMasterKeyChange()
|
||||
setCurrentIndex(3);
|
||||
}
|
||||
|
||||
void DatabaseWidget::setCurrentIndex(int index) {
|
||||
QStackedWidget::setCurrentIndex(index);
|
||||
Q_EMIT currentIndexChanged(index);
|
||||
}
|
||||
|
||||
bool DatabaseWidget::dbHasKey()
|
||||
{
|
||||
return m_db->hasKey();
|
||||
|
||||
Reference in New Issue
Block a user