Mailinglist Archive: yast-commit (503 mails)

< Previous Next >
[yast-commit] r40973 - /branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.cc
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Wed, 19 Sep 2007 22:41:50 -0000
  • Message-id: <20070919224151.1A014175D8@xxxxxxxxxxxxxxxx>
Author: sh-sh-sh
Date: Thu Sep 20 00:41:50 2007
New Revision: 40973

URL: http://svn.opensuse.org/viewcvs/yast?rev=40973&view=rev
Log:
Don't create widgets on the stack!
This is calling for segfaults!

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

Modified: branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.cc?rev=40973&r1=40972&r2=40973&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.cc Thu Sep 20 00:41:50 2007
@@ -659,10 +659,11 @@
 {
   if (!deflist.empty()) {
     wpos        at( ScreenPos() + wpos( win->height(), -1 ) );
-    NCPopupList dialog( at, "", deflist, index );
+    NCPopupList * dialog = new NCPopupList( at, "", deflist, index );
     NCMIL << "Calling createEntries()" << endl;
-    dialog.createEntries( deflist, index );
-    int         idx = dialog.post();
+    dialog->createEntries( deflist, index );
+    dialog->dumpWidgetTree();
+    int         idx = dialog->post();
     if ( idx != -1 )
       setCurrentItem( idx );
   }

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

< Previous Next >
This Thread
  • No further messages