mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Remove unnecessary currentIndexChanged signal in database widget.
This commit is contained in:
parent
3b603f685a
commit
89f138a868
@ -360,7 +360,7 @@ void DatabaseTabWidget::insertDatabase(Database* db, const DatabaseManagerStruct
|
|||||||
connect(dbStruct.dbWidget->entryView(), SIGNAL(entrySelectionChanged()), SLOT(emitEntrySelectionChanged()));
|
connect(dbStruct.dbWidget->entryView(), SIGNAL(entrySelectionChanged()), SLOT(emitEntrySelectionChanged()));
|
||||||
connect(dbStruct.dbWidget, SIGNAL(closeRequest()), SLOT(closeDatabase()));
|
connect(dbStruct.dbWidget, SIGNAL(closeRequest()), SLOT(closeDatabase()));
|
||||||
connect(db, SIGNAL(modified()), SLOT(modified()));
|
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()
|
DatabaseWidget* DatabaseTabWidget::currentDatabaseWidget()
|
||||||
|
@ -185,11 +185,6 @@ void DatabaseWidget::switchToMasterKeyChange()
|
|||||||
setCurrentIndex(3);
|
setCurrentIndex(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatabaseWidget::setCurrentIndex(int index) {
|
|
||||||
QStackedWidget::setCurrentIndex(index);
|
|
||||||
Q_EMIT currentIndexChanged(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DatabaseWidget::dbHasKey()
|
bool DatabaseWidget::dbHasKey()
|
||||||
{
|
{
|
||||||
return m_db->hasKey();
|
return m_db->hasKey();
|
||||||
|
@ -41,7 +41,6 @@ public:
|
|||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void closeRequest();
|
void closeRequest();
|
||||||
void currentIndexChanged(int index);
|
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void createEntry();
|
void createEntry();
|
||||||
@ -49,7 +48,6 @@ public Q_SLOTS:
|
|||||||
void switchToEntryEdit();
|
void switchToEntryEdit();
|
||||||
void switchToGroupEdit();
|
void switchToGroupEdit();
|
||||||
void switchToMasterKeyChange();
|
void switchToMasterKeyChange();
|
||||||
void setCurrentIndex(int index);
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void switchToView(bool accepted);
|
void switchToView(bool accepted);
|
||||||
|
Loading…
Reference in New Issue
Block a user