okular: tell the document to not by annoying in annotations test

fixes the hang in AppVeyor, the messagebox is interactive

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-21 07:07:08 +03:00
parent 506ba84ef3
commit 4cf7f2f395

View file

@ -35,6 +35,11 @@ void AddRemoveAnnotationTest::initTestCase()
{
Okular::SettingsCore::instance( "addannotationtest" );
m_document = new Okular::Document( 0 );
// Tell the document to not be annoying
KSharedConfigPtr c = KGlobal::config();
KConfigGroup cg = c->group("Notification Messages");
cg.writeEntry("annotExportAsArchive", false);
}
void AddRemoveAnnotationTest::init()