mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +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());
|
||||
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()
|
||||
@@ -165,7 +171,7 @@ namespace BlackGui
|
||||
{
|
||||
const bool ok = modelsTargetSetable() || modelsTargetUpdatable();
|
||||
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();
|
||||
Q_ASSERT_X(ok, Q_FUNC_INFO, "Neither setable nor updatable");
|
||||
Q_UNUSED(ok);
|
||||
Q_UNUSED(ok)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user