Commit 93694c6f authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

ENH: Better error reporting for combo boxes.

parent 7ec4bc1a
...@@ -38,6 +38,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -38,6 +38,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <QTextDocument> #include <QTextDocument>
#include <QTextEdit> #include <QTextEdit>
#include "pqObjectNaming.h"
pqAbstractStringEventPlayer::pqAbstractStringEventPlayer(QObject* p) pqAbstractStringEventPlayer::pqAbstractStringEventPlayer(QObject* p)
: pqWidgetEventPlayer(p) : pqWidgetEventPlayer(p)
{ {
...@@ -64,8 +66,9 @@ bool pqAbstractStringEventPlayer::playEvent(QObject* Object, const QString& Comm ...@@ -64,8 +66,9 @@ bool pqAbstractStringEventPlayer::playEvent(QObject* Object, const QString& Comm
{ {
possibles += QString("\t") + object->itemText(i) + QString("\n"); possibles += QString("\t") + object->itemText(i) + QString("\n");
} }
qCritical() << "Unable to find " << value << " in combo box\n" qCritical() << "Unable to find " << value << " in combo box: "
<< "Possible values are:\n" << possibles; << pqObjectNaming::GetName(*Object)
<< "\nPossible values are:\n" << possibles;
Error = true; Error = true;
} }
return true; return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment