Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r39951 - /branches/tmp/mvidner/ui-as-namespace/core/liby2/src/Y2ComponentBroker.cc
  • From: mvidner@xxxxxxxxxxxxxxxx
  • Date: Fri, 03 Aug 2007 15:23:03 -0000
  • Message-id: <20070803152303.E4166B5A71@xxxxxxxxxxxxxxxx>
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/core/liby2/src/Y2ComponentBroker.cc?rev=39951&r1=39950&r2=39951&view=diff
==============================================================================
--- 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages