mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-04 17:05:23 -05:00
Activate window in TestGui.
It doesn't seem to get the focus automatically when run inside Xvfb. QTRY_VERIFY(searchEdit->hasFocus()) failed as a result of this.
This commit is contained in:
parent
82aa02a980
commit
5a13402b51
@ -57,6 +57,7 @@ void TestGui::initTestCase()
|
|||||||
m_mainWindow = new MainWindow();
|
m_mainWindow = new MainWindow();
|
||||||
m_tabWidget = m_mainWindow->findChild<DatabaseTabWidget*>("tabWidget");
|
m_tabWidget = m_mainWindow->findChild<DatabaseTabWidget*>("tabWidget");
|
||||||
m_mainWindow->show();
|
m_mainWindow->show();
|
||||||
|
m_mainWindow->activateWindow();
|
||||||
Tools::wait(50);
|
Tools::wait(50);
|
||||||
|
|
||||||
QByteArray tmpData;
|
QByteArray tmpData;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user