Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41456 - /branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Thu, 18 Oct 2007 10:03:01 -0000
  • Message-id: <20071018100302.0E1CC2662E@xxxxxxxxxxxxxxxx>
Author: gs
Date: Thu Oct 18 12:03:01 2007
New Revision: 41456

URL: http://svn.opensuse.org/viewcvs/yast?rev=41456&view=rev
Log:
check pointer

Modified:
    branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc

Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc?rev=41456&r1=41455&r2=41456&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc Thu Oct 18 12:03:01 2007
@@ -45,8 +45,11 @@
     // create the layout (the NCTree)
     createLayout( NCPkgNames::RpmTreeLabel() );
 
-    // clone the tree (fill the NCTree)
-    cloneTree( pkg->rpmGroupsTree()->root(), 0 ); 
+    if ( pkg->rpmGroupsTree() )
+    {
+       // clone the tree (fill the NCTree)
+       cloneTree( pkg->rpmGroupsTree()->root(), 0 );
+    }
 }
 
 ///////////////////////////////////////////////////////////////////
@@ -71,7 +74,6 @@
 //
 void NCPkgPopupTree::createLayout( const string & label )
 {
-
   YWidgetOpt opt;
   opt.notifyMode.setValue( true );
   // FIXME
@@ -84,7 +86,9 @@
 
   // create the tree 
   filterTree = new NCTree( split, label );
-
+  YUI_CHECK_NEW( filterTree );
+  
+  filterTree->setNotify( true );
 }
 
 ///////////////////////////////////////////////////////////////////

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages