Commit 99b4f276 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Clear m_openError before opening

parent 18873d18
Pipeline #14834 passed with stage
in 11 minutes and 46 seconds
......@@ -930,6 +930,7 @@ Document::OpenResult DocumentPrivate::openDocumentInternal( const KPluginMetaDat
m_generator->d_func()->m_document = this;
// connect error reporting signals
m_openError.clear();
QMetaObject::Connection errorToOpenErrorConnection = QObject::connect( m_generator, &Generator::error, m_parent, [this](const QString &message) { m_openError = message; } );
QObject::connect( m_generator, &Generator::warning, m_parent, &Document::warning );
QObject::connect( m_generator, &Generator::notice, m_parent, &Document::notice );
......
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