Commit 68ae4d77 authored by Laurent Montel's avatar Laurent Montel 😁

Show error

parent c9c6a7ec
......@@ -69,7 +69,9 @@ RegexpEditorLineEdit::~RegexpEditorLineEdit()
void RegexpEditorLineEdit::slotOpenRegexpEditor()
{
QDialog *editorDialog = KServiceTypeTrader::createInstanceFromQuery<QDialog>(QStringLiteral("KRegExpEditor/KRegExpEditor"), QString(), this);
QString error;
QDialog *editorDialog = KServiceTypeTrader::createInstanceFromQuery<QDialog>(QStringLiteral("KRegExpEditor/KRegExpEditor"), this, this, {}, {}, &error);
qDebug() << "error " << error;
qDebug() << " editorDialog"<<editorDialog;
if ( editorDialog ) {
KRegExpEditorInterface* iface = qobject_cast<KRegExpEditorInterface*>(editorDialog);
......@@ -81,6 +83,8 @@ void RegexpEditorLineEdit::slotOpenRegexpEditor()
if(editorDialog->exec() == QDialog::Accepted) {
mLineEdit->setText(iface->regExp());
}
} else {
qDebug() << " Impossible to create regexpeditor " << error;
}
}
......
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