summaryrefslogtreecommitdiffstats
path: root/sigmodr/ValidationDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/ValidationDialog.cpp')
-rw-r--r--sigmodr/ValidationDialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmodr/ValidationDialog.cpp b/sigmodr/ValidationDialog.cpp
index 43290859..8a32486d 100644
--- a/sigmodr/ValidationDialog.cpp
+++ b/sigmodr/ValidationDialog.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -110,9 +110,9 @@ void Sigmodr::ValidationDialog::insertMessage(const QString& msg, const QBrush&
void Sigmodr::ValidationDialog::addMessage(const QString& msg)
{
- if (msg.startsWith("++"))
+ if (msg.startsWith(QString("++")))
m_parents.push(ObjectErrorCount(new QTreeWidgetItem(QStringList(msg.mid(2))), 0));
- else if (msg.startsWith("--"))
+ else if (msg.startsWith(QString("--")))
{
ObjectErrorCount count = m_parents.pop();
if (count.second)