summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@gmail.com>2011-11-23 14:34:54 -0300
committerPaulo Alcantara <pcacjr@gmail.com>2011-11-23 14:50:36 -0300
commitc3fc0784f8bc2e17f668cd0eb40f06e3cb7d008b (patch)
tree5d382bf7130a3e6f3f9088c513771b3a3a46918a
parenta357fbbe501a2927995a8f8c1650bfda052c3429 (diff)
downloadpyside-c3fc0784f8bc2e17f668cd0eb40f06e3cb7d008b.tar.gz
pyside-c3fc0784f8bc2e17f668cd0eb40f06e3cb7d008b.tar.xz
pyside-c3fc0784f8bc2e17f668cd0eb40f06e3cb7d008b.zip
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 09070bf..78e5a20 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);
}