mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix typo canDeleteCurrentGoup() -> canDeleteCurrentGroup().
This commit is contained in:
parent
ce7e01a1b1
commit
e361b0dd81
@ -440,7 +440,7 @@ void DatabaseWidget::createGroup()
|
|||||||
void DatabaseWidget::deleteGroup()
|
void DatabaseWidget::deleteGroup()
|
||||||
{
|
{
|
||||||
Group* currentGroup = m_groupView->currentGroup();
|
Group* currentGroup = m_groupView->currentGroup();
|
||||||
if (!currentGroup || !canDeleteCurrentGoup()) {
|
if (!currentGroup || !canDeleteCurrentGroup()) {
|
||||||
Q_ASSERT(false);
|
Q_ASSERT(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -791,7 +791,7 @@ bool DatabaseWidget::dbHasKey() const
|
|||||||
return m_db->hasKey();
|
return m_db->hasKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DatabaseWidget::canDeleteCurrentGoup() const
|
bool DatabaseWidget::canDeleteCurrentGroup() const
|
||||||
{
|
{
|
||||||
bool isRootGroup = m_db->rootGroup() == m_groupView->currentGroup();
|
bool isRootGroup = m_db->rootGroup() == m_groupView->currentGroup();
|
||||||
bool isRecycleBin = m_db->metadata()->recycleBin() == m_groupView->currentGroup();
|
bool isRecycleBin = m_db->metadata()->recycleBin() == m_groupView->currentGroup();
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
EntryView* entryView();
|
EntryView* entryView();
|
||||||
Database* database();
|
Database* database();
|
||||||
bool dbHasKey() const;
|
bool dbHasKey() const;
|
||||||
bool canDeleteCurrentGoup() const;
|
bool canDeleteCurrentGroup() const;
|
||||||
bool isInSearchMode() const;
|
bool isInSearchMode() const;
|
||||||
int addWidget(QWidget* w);
|
int addWidget(QWidget* w);
|
||||||
void setCurrentIndex(int index);
|
void setCurrentIndex(int index);
|
||||||
|
@ -291,7 +291,7 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
|||||||
m_ui->actionEntryOpenUrl->setEnabled(singleEntrySelected);
|
m_ui->actionEntryOpenUrl->setEnabled(singleEntrySelected);
|
||||||
m_ui->actionGroupNew->setEnabled(groupSelected);
|
m_ui->actionGroupNew->setEnabled(groupSelected);
|
||||||
m_ui->actionGroupEdit->setEnabled(groupSelected);
|
m_ui->actionGroupEdit->setEnabled(groupSelected);
|
||||||
m_ui->actionGroupDelete->setEnabled(groupSelected && dbWidget->canDeleteCurrentGoup());
|
m_ui->actionGroupDelete->setEnabled(groupSelected && dbWidget->canDeleteCurrentGroup());
|
||||||
m_ui->actionSearch->setEnabled(true);
|
m_ui->actionSearch->setEnabled(true);
|
||||||
// TODO: get checked state from db widget
|
// TODO: get checked state from db widget
|
||||||
m_ui->actionSearch->setChecked(inSearch);
|
m_ui->actionSearch->setChecked(inSearch);
|
||||||
|
Loading…
Reference in New Issue
Block a user