mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
🔒 Fix search information leak
This commit is contained in:
parent
9fc83c7cd5
commit
6f4b5fc71a
@ -1064,6 +1064,7 @@ void DatabaseWidget::lock()
|
|||||||
m_entryBeforeLock = m_entryView->currentEntry()->uuid();
|
m_entryBeforeLock = m_entryView->currentEntry()->uuid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
endSearch();
|
||||||
clearAllWidgets();
|
clearAllWidgets();
|
||||||
m_unlockDatabaseWidget->load(m_filename);
|
m_unlockDatabaseWidget->load(m_filename);
|
||||||
setCurrentWidget(m_unlockDatabaseWidget);
|
setCurrentWidget(m_unlockDatabaseWidget);
|
||||||
|
@ -219,9 +219,11 @@ MainWindow::MainWindow()
|
|||||||
m_actionMultiplexer.connect(SIGNAL(entryContextMenuRequested(QPoint)),
|
m_actionMultiplexer.connect(SIGNAL(entryContextMenuRequested(QPoint)),
|
||||||
this, SLOT(showEntryContextMenu(QPoint)));
|
this, SLOT(showEntryContextMenu(QPoint)));
|
||||||
|
|
||||||
// Notify search when the active database changes
|
// Notify search when the active database changes or gets locked
|
||||||
connect(m_ui->tabWidget, SIGNAL(activateDatabaseChanged(DatabaseWidget*)),
|
connect(m_ui->tabWidget, SIGNAL(activateDatabaseChanged(DatabaseWidget*)),
|
||||||
search, SLOT(databaseChanged(DatabaseWidget*)));
|
search, SLOT(databaseChanged(DatabaseWidget*)));
|
||||||
|
connect(m_ui->tabWidget, SIGNAL(databaseLocked(DatabaseWidget*)),
|
||||||
|
search, SLOT(databaseChanged()));
|
||||||
|
|
||||||
connect(m_ui->tabWidget, SIGNAL(tabNameChanged()),
|
connect(m_ui->tabWidget, SIGNAL(tabNameChanged()),
|
||||||
SLOT(updateWindowTitle()));
|
SLOT(updateWindowTitle()));
|
||||||
|
@ -51,7 +51,7 @@ signals:
|
|||||||
void enterPressed();
|
void enterPressed();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void databaseChanged(DatabaseWidget* dbWidget);
|
void databaseChanged(DatabaseWidget* dbWidget = 0);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void startSearchTimer();
|
void startSearchTimer();
|
||||||
|
Loading…
Reference in New Issue
Block a user