From f9114a0510370bd2d6dc405a0f256aa5ca55ca07 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 29 Jan 2008 15:54:49 -0500 Subject: [PATCH] ENH: Correctly format multi-line error messages. --- Source/QtDialog/CMakeSetupDialog.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 3c57cf565..21e5782b6 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -453,7 +453,11 @@ void CMakeSetupDialog::showProgress(const QString& /*msg*/, float percent) void CMakeSetupDialog::error(const QString& message) { - this->Output->append(QString("%1").arg(message)); + QStringList messages = message.split('\n'); + foreach(QString m, messages) + { + this->Output->append(QString("%1").arg(m)); + } } void CMakeSetupDialog::setEnabledState(bool enabled)