Commit 7e247f17 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent b6c09c2f
Pipeline #210497 passed with stage
in 2 minutes and 23 seconds
......@@ -95,7 +95,7 @@ ModelViewer::ModelViewer(Plasma::DataEngine *engine, const QString &source, QWid
connect(m_engine, &QObject::destroyed, this, &ModelViewer::engineDestroyed);
m_view->setModel(m_model);
} else {
KMessageBox::sorry(this, i18n("No valid model was returned. Verify that a model is available for this source."));
KMessageBox::error(this, i18n("No valid model was returned. Verify that a model is available for this source."));
close();
}
}
......
......@@ -64,7 +64,7 @@ ServiceViewer::ServiceViewer(Plasma::DataEngine *engine, const QString &source,
connect(m_service, SIGNAL(operationsChanged()), this, SLOT(updateOperations()));
connect(m_engine, &QObject::destroyed, this, &ServiceViewer::engineDestroyed);
} else {
KMessageBox::sorry(this, i18n("No valid service was returned. Verify that a service is available for this source."));
KMessageBox::error(this, i18n("No valid service was returned. Verify that a service is available for this source."));
close();
}
}
......
Supports Markdown
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