diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp index f607c3a93..f824f7d18 100644 --- a/src/gui/DatabaseTabWidget.cpp +++ b/src/gui/DatabaseTabWidget.cpp @@ -360,7 +360,7 @@ void DatabaseTabWidget::insertDatabase(Database* db, const DatabaseManagerStruct connect(dbStruct.dbWidget->entryView(), SIGNAL(entrySelectionChanged()), SLOT(emitEntrySelectionChanged())); connect(dbStruct.dbWidget, SIGNAL(closeRequest()), SLOT(closeDatabase())); connect(db, SIGNAL(modified()), SLOT(modified())); - connect(dbStruct.dbWidget, SIGNAL(currentIndexChanged(int)), this, SIGNAL(currentWidgetIndexChanged(int))); + connect(dbStruct.dbWidget, SIGNAL(currentChanged(int)), this, SIGNAL(currentWidgetIndexChanged(int))); } DatabaseWidget* DatabaseTabWidget::currentDatabaseWidget() diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 9649542ba..e4f67ce09 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -185,11 +185,6 @@ void DatabaseWidget::switchToMasterKeyChange() setCurrentIndex(3); } -void DatabaseWidget::setCurrentIndex(int index) { - QStackedWidget::setCurrentIndex(index); - Q_EMIT currentIndexChanged(index); -} - bool DatabaseWidget::dbHasKey() { return m_db->hasKey(); diff --git a/src/gui/DatabaseWidget.h b/src/gui/DatabaseWidget.h index 563e3e1c9..64e54f9b0 100644 --- a/src/gui/DatabaseWidget.h +++ b/src/gui/DatabaseWidget.h @@ -41,7 +41,6 @@ public: Q_SIGNALS: void closeRequest(); - void currentIndexChanged(int index); public Q_SLOTS: void createEntry(); @@ -49,7 +48,6 @@ public Q_SLOTS: void switchToEntryEdit(); void switchToGroupEdit(); void switchToMasterKeyChange(); - void setCurrentIndex(int index); private Q_SLOTS: void switchToView(bool accepted);