mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 06:36:07 -04:00
Close databases when they are locked.
Previously we've only hidden access to them. Closes #275
This commit is contained in:
parent
33650c4a04
commit
9e051e835b
11 changed files with 149 additions and 91 deletions
|
@ -421,10 +421,12 @@ void TestGui::testKeePass1Import()
|
|||
|
||||
void TestGui::testDatabaseLocking()
|
||||
{
|
||||
MessageBox::setNextAnswer(QMessageBox::Cancel);
|
||||
|
||||
triggerAction("actionLockDatabases");
|
||||
|
||||
QCOMPARE(m_tabWidget->tabText(0), QString("Save [locked]"));
|
||||
QCOMPARE(m_tabWidget->tabText(1), QString("basic [New database] [locked]*"));
|
||||
QCOMPARE(m_tabWidget->tabText(1), QString("basic [New database]*"));
|
||||
|
||||
QWidget* dbWidget = m_tabWidget->currentDatabaseWidget();
|
||||
QWidget* unlockDatabaseWidget = dbWidget->findChild<QWidget*>("unlockDatabaseWidget");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue