ENH: Correctly format multi-line error messages.

This commit is contained in:
Clinton Stimpson 2008-01-29 15:54:49 -05:00
parent 319c4c4d80
commit f9114a0510
1 changed files with 5 additions and 1 deletions

View File

@ -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)