[yast-commit] r39951 - /branches/tmp/mvidner/ui-as-namespace/core/liby2/src/Y2ComponentBroker.cc

Author: mvidner Date: Fri Aug 3 17:23:03 2007 New Revision: 39951 URL: http://svn.opensuse.org/viewcvs/yast?rev=39951&view=rev Log: When creating a component based on the exception list for namespaces, prefer servers to clients. Otherwise qt as client fails but as it is the constructor, we just go on and crash. Modified: branches/tmp/mvidner/ui-as-namespace/core/liby2/src/Y2ComponentBroker.cc Modified: branches/tmp/mvidner/ui-as-namespace/core/liby2/src/Y2ComponentBroker.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/co... ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/liby2/src/Y2ComponentBroker.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/liby2/src/Y2ComponentBroker.cc Fri Aug 3 17:23:03 2007 @@ -121,11 +121,12 @@ { string comp_name = exi->second; - Y2Component *comp = createClient (comp_name.c_str ()); + // the ui stuff is a mess, must prefer servers + Y2Component *comp = createServer (comp_name.c_str ()); if (! comp) { - // no client component, try server as well - comp = Y2ComponentBroker::createServer (comp_name.c_str ()); + // no server component, try client as well + comp = Y2ComponentBroker::createClient (comp_name.c_str ()); } if (comp) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn.opensuse.org