aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@gmail.com>2011-11-23 14:34:54 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:17 -0300
commit45ad11e5be972579f492c142ea3caf79e9bf96fd (patch)
tree506da05e47185ad0ee39301b844d9abe81a25af7
parente031567fac78e630de5655118097b3f87819e79f (diff)
Fix BUG #1058 - "Strange code in PySide/QtUiTools/glue/plugins.h"
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Bruno Ara├║jo <bruno.araujo@openbossa.org>
-rw-r--r--PySide/QtUiTools/glue/plugins.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtUiTools/glue/plugins.h b/PySide/QtUiTools/glue/plugins.h
index 09070bf19..78e5a2049 100644
--- a/PySide/QtUiTools/glue/plugins.h
+++ b/PySide/QtUiTools/glue/plugins.h
@@ -33,13 +33,13 @@ inline void registerCustomWidget(PyObject* obj)
if (plugin == 0) {
foreach(QObject* o, QPluginLoader::staticInstances()) {
plugin = qobject_cast<PyCustomWidgets*>(o);
- if (o)
+ if (plugin)
break;
}
}
if (!plugin)
- qDebug() << "Fail to load uiloader plugin";
+ qDebug() << "Failed to load uiloader plugin.";
else
plugin->registerWidgetType(obj);
}