Commit a36f32d0 authored by David Jarvie's avatar David Jarvie
Browse files

Improve information message appearance

parent 4bcbb317
......@@ -607,9 +607,17 @@ QPixmap* ResourceDataModelBase::eventIcon(const KAEvent& event)
void ResourceDataModelBase::handleResourceMessage(ResourceType::MessageType type, const QString& message, const QString& details)
{
if (type == ResourceType::MessageType::Error)
{
qCDebug(KALARM_LOG) << "Resource Error!" << message << details;
KAMessageBox::detailedError(MainWindow::mainMainWindow(), message, details);
}
else if (type == ResourceType::MessageType::Info)
KAMessageBox::informationList(MainWindow::mainMainWindow(), message, {details});
{
qCDebug(KALARM_LOG) << "Resource user message:" << message << details;
// KMessageBox::informationList looks bad, so use our own formatting.
const QString msg = details.isEmpty() ? message : message + QStringLiteral("\n\n") + details;
KAMessageBox::information(MainWindow::mainMainWindow(), msg);
}
}
bool ResourceDataModelBase::isMigrationComplete() const
......
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