summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-24 13:53:02 +0200
committerMontel Laurent <[email protected]>2017-05-24 13:53:11 +0200
commit68ae4d77a21ac4e0068eafd950479992496dff70 (patch)
tree01d17ad9d2a469308aefde28b379de4d1e7c6ea0
parentc9c6a7ec3936d311bb752eaa69da3130ab60f2ec (diff)
Show error
-rw-r--r--sieveeditor/regexeditorlineedit/regexpeditorlineedit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/sieveeditor/regexeditorlineedit/regexpeditorlineedit.cpp b/sieveeditor/regexeditorlineedit/regexpeditorlineedit.cpp
index 71557d9..7e9bd1a 100644
--- a/sieveeditor/regexeditorlineedit/regexpeditorlineedit.cpp
+++ b/sieveeditor/regexeditorlineedit/regexpeditorlineedit.cpp
@@ -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;
}
}