Commit e835c29f authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix a copy-paste mistake from previous commit

The copy-paste mistake caused that the issues fixed in previous commits
were really only fixed in EventEditTest, not the other two.
parent e2f9f14b
......@@ -62,7 +62,7 @@ NoteEditTest::NoteEditTest()
MessageViewer::_k_noteEditStubModel = model;
// Fake a default-selected collection for shouldHaveDefaultValuesOnCreation test
MessageViewer::MessageViewerSettingsBase::self()->setLastEventSelectedFolder(43);
MessageViewer::MessageViewerSettingsBase::self()->setLastNoteSelectedFolder(43);
}
void NoteEditTest::shouldHaveDefaultValuesOnCreation()
......@@ -404,6 +404,8 @@ void NoteEditTest::shouldHaveLineEditFocus()
{
MessageViewer::NoteEdit edit;
edit.show();
// make sure the window is active so we can test for focus
qApp->setActiveWindow(&edit);
QTest::qWaitForWindowExposed(&edit);
KMime::Message::Ptr msg(new KMime::Message);
QString subject = QStringLiteral("Test Note");
......
......@@ -64,7 +64,7 @@ TodoEditTest::TodoEditTest()
MessageViewer::_k_todoEditStubModel = model;
// Fake a default-selected collection for shouldHaveDefaultValuesOnCreation test
MessageViewer::MessageViewerSettingsBase::self()->setLastEventSelectedFolder(43);
MessageViewer::MessageViewerSettingsBase::self()->setLastSelectedFolder(43);
}
void TodoEditTest::shouldHaveDefaultValuesOnCreation()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment