Fix typo canDeleteCurrentGoup() -> canDeleteCurrentGroup().

This commit is contained in:
Felix Geyer 2014-05-15 22:56:36 +02:00
parent ce7e01a1b1
commit e361b0dd81
3 changed files with 4 additions and 4 deletions

View File

@ -440,7 +440,7 @@ void DatabaseWidget::createGroup()
void DatabaseWidget::deleteGroup()
{
Group* currentGroup = m_groupView->currentGroup();
if (!currentGroup || !canDeleteCurrentGoup()) {
if (!currentGroup || !canDeleteCurrentGroup()) {
Q_ASSERT(false);
return;
}
@ -791,7 +791,7 @@ bool DatabaseWidget::dbHasKey() const
return m_db->hasKey();
}
bool DatabaseWidget::canDeleteCurrentGoup() const
bool DatabaseWidget::canDeleteCurrentGroup() const
{
bool isRootGroup = m_db->rootGroup() == m_groupView->currentGroup();
bool isRecycleBin = m_db->metadata()->recycleBin() == m_groupView->currentGroup();

View File

@ -63,7 +63,7 @@ public:
EntryView* entryView();
Database* database();
bool dbHasKey() const;
bool canDeleteCurrentGoup() const;
bool canDeleteCurrentGroup() const;
bool isInSearchMode() const;
int addWidget(QWidget* w);
void setCurrentIndex(int index);

View File

@ -291,7 +291,7 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
m_ui->actionEntryOpenUrl->setEnabled(singleEntrySelected);
m_ui->actionGroupNew->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);
// TODO: get checked state from db widget
m_ui->actionSearch->setChecked(inSearch);