mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-02 01:25:13 -05:00
Use a fixed sleep call instead of QTest::qWaitForWindowShown().
The latter seems to be broken and always seeps until it hits the timeout (2s).
This commit is contained in:
parent
6b3fed1ce5
commit
9144765d56
@ -35,6 +35,7 @@
|
||||
#include "core/Entry.h"
|
||||
#include "core/Group.h"
|
||||
#include "core/Metadata.h"
|
||||
#include "core/Tools.h"
|
||||
#include "crypto/Crypto.h"
|
||||
#include "format/KeePass2Reader.h"
|
||||
#include "gui/DatabaseTabWidget.h"
|
||||
@ -54,7 +55,7 @@ void TestGui::initTestCase()
|
||||
m_mainWindow = new MainWindow();
|
||||
m_tabWidget = m_mainWindow->findChild<DatabaseTabWidget*>("tabWidget");
|
||||
m_mainWindow->show();
|
||||
QTest::qWaitForWindowShown(m_mainWindow);
|
||||
Tools::wait(50);
|
||||
}
|
||||
|
||||
void TestGui::testOpenDatabase()
|
||||
|
Loading…
x
Reference in New Issue
Block a user