mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 17:55:45 +08:00
Improved log.message if model file is NOT available
This commit is contained in:
committed by
Mat Sutcliffe
parent
c104e2105c
commit
7c7ed41f05
@@ -126,6 +126,12 @@ namespace BlackGui
|
|||||||
const QUrl url = QUrl::fromLocalFile(model.getFileName());
|
const QUrl url = QUrl::fromLocalFile(model.getFileName());
|
||||||
QDesktopServices::openUrl(url);
|
QDesktopServices::openUrl(url);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
const CStatusMessage m = CStatusMessage(this, CStatusMessage::SeverityError, QStringLiteral("No file for model '&1'").arg(model.getFileName()), true);
|
||||||
|
if (m_messageFrame) { m_messageFrame->showOverlayHTMLMessage(m); }
|
||||||
|
CLogMessage::preformatted(m);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CShowSimulatorFileMenu::displayIcon()
|
void CShowSimulatorFileMenu::displayIcon()
|
||||||
@@ -165,7 +171,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
const bool ok = modelsTargetSetable() || modelsTargetUpdatable();
|
const bool ok = modelsTargetSetable() || modelsTargetUpdatable();
|
||||||
Q_ASSERT_X(ok, Q_FUNC_INFO, "Neither setable nor updatable");
|
Q_ASSERT_X(ok, Q_FUNC_INFO, "Neither setable nor updatable");
|
||||||
Q_UNUSED(ok);
|
Q_UNUSED(ok)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -270,7 +276,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
const bool ok = modelsTargetSetable() || modelsTargetUpdatable();
|
const bool ok = modelsTargetSetable() || modelsTargetUpdatable();
|
||||||
Q_ASSERT_X(ok, Q_FUNC_INFO, "Neither setable nor updatable");
|
Q_ASSERT_X(ok, Q_FUNC_INFO, "Neither setable nor updatable");
|
||||||
Q_UNUSED(ok);
|
Q_UNUSED(ok)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user