Commit 09fbdaaa authored by Laurent Montel's avatar Laurent Montel 😁

Fix open regexpeditor

parent 4da778df
......@@ -555,7 +555,7 @@ void KfindTabWidget::loadHistory()
void KfindTabWidget::slotEditRegExp()
{
if (!regExpDialog) {
regExpDialog = KServiceTypeTrader::createInstanceFromQuery<KDialog>(QStringLiteral("KRegExpEditor/KRegExpEditor"), QString(), this);
regExpDialog = KServiceTypeTrader::createInstanceFromQuery<QDialog>(QStringLiteral("KRegExpEditor/KRegExpEditor"), QString(), this);
}
KRegExpEditorInterface *iface = qobject_cast<KRegExpEditorInterface *>(regExpDialog);
......@@ -564,8 +564,7 @@ void KfindTabWidget::slotEditRegExp()
}
iface->setRegExp(textEdit->text());
bool ok = regExpDialog->exec();
if (ok) {
if (regExpDialog->exec()) {
textEdit->setText(iface->regExp());
}
}
......
......@@ -126,7 +126,7 @@ private:
QCheckBox *caseContextCb;
QCheckBox *binaryContextCb;
QCheckBox *regexpContentCb;
KDialog *regExpDialog;
QDialog *regExpDialog;
QUrl m_url;
......
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