Commit e9a6732d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't call it several times

parent 7a30476b
Pipeline #24408 passed with stage
in 50 minutes and 1 second
...@@ -192,7 +192,6 @@ ViewerPrivate::ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollec ...@@ -192,7 +192,6 @@ ViewerPrivate::ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollec
+ QByteArray::number(reinterpret_cast<quintptr>(this)), this)) + QByteArray::number(reinterpret_cast<quintptr>(this)), this))
, mPreviouslyViewedItemId(-1) , mPreviouslyViewedItemId(-1)
{ {
MailWebEngineView::initializeCustomScheme();
if (!mainWindow) { if (!mainWindow) {
mMainWindow = aParent; mMainWindow = aParent;
...@@ -201,6 +200,7 @@ ViewerPrivate::ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollec ...@@ -201,6 +200,7 @@ ViewerPrivate::ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollec
mDkimWidgetInfo = new MessageViewer::DKIMWidgetInfo(mMainWindow); mDkimWidgetInfo = new MessageViewer::DKIMWidgetInfo(mMainWindow);
if (_k_attributeInitialized.testAndSetAcquire(0, 1)) { if (_k_attributeInitialized.testAndSetAcquire(0, 1)) {
MailWebEngineView::initializeCustomScheme();
Akonadi::AttributeFactory::registerAttribute<MessageViewer::MessageDisplayFormatAttribute>(); Akonadi::AttributeFactory::registerAttribute<MessageViewer::MessageDisplayFormatAttribute>();
Akonadi::AttributeFactory::registerAttribute<MessageViewer::ScamAttribute>(); Akonadi::AttributeFactory::registerAttribute<MessageViewer::ScamAttribute>();
} }
......
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