diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-01-29 20:54:49 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-01-29 20:54:49 (GMT) |
commit | f9114a0510370bd2d6dc405a0f256aa5ca55ca07 (patch) | |
tree | cdbfefc7d2bc13a0c1ff2082e9bf6ea312d2355b /Source/QtDialog | |
parent | 319c4c4d8033d8c37f320839196ed174c4674fdf (diff) | |
download | CMake-f9114a0510370bd2d6dc405a0f256aa5ca55ca07.zip CMake-f9114a0510370bd2d6dc405a0f256aa5ca55ca07.tar.gz CMake-f9114a0510370bd2d6dc405a0f256aa5ca55ca07.tar.bz2 |
ENH: Correctly format multi-line error messages.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 3c57cf5..21e5782 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("<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) |