ENH: Correctly format multi-line error messages.
This commit is contained in:
parent
319c4c4d80
commit
f9114a0510
|
@ -453,7 +453,11 @@ void CMakeSetupDialog::showProgress(const QString& /*msg*/, float percent)
|
||||||
|
|
||||||
void CMakeSetupDialog::error(const QString& message)
|
void CMakeSetupDialog::error(const QString& message)
|
||||||
{
|
{
|
||||||
this->Output->append(QString("<b><font color=red>%1</font></b>").arg(message));
|
QStringList messages = message.split('\n');
|
||||||
|
foreach(QString m, messages)
|
||||||
|
{
|
||||||
|
this->Output->append(QString("<b><font color=red>%1</font></b>").arg(m));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMakeSetupDialog::setEnabledState(bool enabled)
|
void CMakeSetupDialog::setEnabledState(bool enabled)
|
||||||
|
|
Loading…
Reference in New Issue