[yast-commit] r41992 - /branches/tmp/sh/mod-ui/web-wt/src/Y2CCWeb.h
Author: visnov Date: Tue Nov 13 09:50:00 2007 New Revision: 41992 URL: http://svn.opensuse.org/viewcvs/yast?rev=41992&view=rev Log: fix UI initialization, it runs, baby\! Modified: branches/tmp/sh/mod-ui/web-wt/src/Y2CCWeb.h Modified: branches/tmp/sh/mod-ui/web-wt/src/Y2CCWeb.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/web-wt/src/Y2CCWeb.h?rev=41992&r1=41991&r2=41992&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/web-wt/src/Y2CCWeb.h (original) +++ branches/tmp/sh/mod-ui/web-wt/src/Y2CCWeb.h Tue Nov 13 09:50:00 2007 @@ -50,10 +50,17 @@ */ Y2Component *create(const char * name) const { - if (!strcmp(name, "web") ) - return new YWebUIComponent(); - else - return 0; + if (!strcmp(name, "web") ) + { + Y2Component* ret = YUIComponent::uiComponent (); + if (!ret || ret->name () != name) + { + ret = new YWebUIComponent(); + } + return ret; + } + else + return 0; } }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
visnov@svn.opensuse.org