Mercurial > hg > svgui
diff view/View.cpp @ 583:4c484636d5ec
Record and show any error that occurs during layer processing (e.g. spectrogram layer runs out of disc space for feature files)
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2011 15:21:21 +0100 |
parents | bb1035a24958 |
children | 1fe7951a61e8 |
line wrap: on
line diff
--- a/view/View.cpp Thu Apr 07 15:20:12 2011 +0100 +++ b/view/View.cpp Thu Apr 14 15:21:21 2011 +0100 @@ -33,6 +33,7 @@ #include <QProgressDialog> #include <QTextStream> #include <QFont> +#include <QMessageBox> #include <iostream> #include <cassert> @@ -1436,6 +1437,12 @@ int completion = i->first->getCompletion(this); QString text = i->first->getPropertyContainerName(); + QString error = i->first->getError(this); + + if (error != "" && error != m_lastError) { + QMessageBox::critical(this, tr("Layer rendering error"), error); + m_lastError = error; + } Model *model = i->first->getModel(); RangeSummarisableTimeValueModel *wfm =