From 020015cccceb3c2391c4764ee2ec29dfc5c461c6 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 3 Mar 2015 14:51:47 +0100 Subject: [PATCH] Update plugin's register functions to return the object instance instead of performing the registration themselves --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 12efe8e8e7..b4264fd10f 100644 --- a/__init__.py +++ b/__init__.py @@ -4,4 +4,4 @@ def getMetaData(): return { "name": "LayerView", "type": "View" } def register(app): - app.getController().addView("LayerView", LayerView.LayerView()) + return LayerView.LayerView()