mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Make sure copy actions are disabled when database is locked.
Closes #189
This commit is contained in:
parent
e263c475c9
commit
b718e9d8f2
@ -313,6 +313,11 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
|||||||
Q_FOREACH (QAction* action, m_ui->menuGroups->actions()) {
|
Q_FOREACH (QAction* action, m_ui->menuGroups->actions()) {
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
m_ui->actionEntryCopyTitle->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyUsername->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyPassword->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyURL->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyNotes->setEnabled(false);
|
||||||
m_ui->menuEntryCopyAttribute->setEnabled(false);
|
m_ui->menuEntryCopyAttribute->setEnabled(false);
|
||||||
|
|
||||||
m_ui->actionSearch->setEnabled(false);
|
m_ui->actionSearch->setEnabled(false);
|
||||||
@ -335,6 +340,11 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
|||||||
Q_FOREACH (QAction* action, m_ui->menuGroups->actions()) {
|
Q_FOREACH (QAction* action, m_ui->menuGroups->actions()) {
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
m_ui->actionEntryCopyTitle->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyUsername->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyPassword->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyURL->setEnabled(false);
|
||||||
|
m_ui->actionEntryCopyNotes->setEnabled(false);
|
||||||
m_ui->menuEntryCopyAttribute->setEnabled(false);
|
m_ui->menuEntryCopyAttribute->setEnabled(false);
|
||||||
|
|
||||||
m_ui->actionSearch->setEnabled(false);
|
m_ui->actionSearch->setEnabled(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user