Author: coolo Date: Sun Dec 9 19:53:51 2007 New Revision: 42879 URL: http://svn.opensuse.org/viewcvs/yast?rev=42879&view=rev Log: avoid crash on exit - that is also reproducible in qt3 Modified: trunk/qt4/src/YQDialog.cc trunk/qt4/src/YQGenericButton.cc trunk/qt4/src/YQGenericButton.h Modified: trunk/qt4/src/YQDialog.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQDialog.cc?rev=42879&r1=42878&r2=42879&view=diff ============================================================================== --- trunk/qt4/src/YQDialog.cc (original) +++ trunk/qt4/src/YQDialog.cc Sun Dec 9 19:53:51 2007 @@ -95,6 +95,10 @@ { YQMainWinDock::mainWinDock()->remove( this ); } + if ( _defaultButton ) + _defaultButton->forgetDialog(); + if ( _focusButton ) + _focusButton->forgetDialog(); } Modified: trunk/qt4/src/YQGenericButton.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQGenericButton.cc?rev=42879&r1=42878&r2=42879&view=diff ============================================================================== --- trunk/qt4/src/YQGenericButton.cc (original) +++ trunk/qt4/src/YQGenericButton.cc Sun Dec 9 19:53:51 2007 @@ -68,6 +68,11 @@ } } +void +YQGenericButton::forgetDialog() +{ + _dialog = 0; +} YQDialog * YQGenericButton::dialog() Modified: trunk/qt4/src/YQGenericButton.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt4/src/YQGenericButton.h?rev=42879&r1=42878&r2=42879&view=diff ============================================================================== --- trunk/qt4/src/YQGenericButton.h (original) +++ trunk/qt4/src/YQGenericButton.h Sun Dec 9 19:53:51 2007 @@ -37,6 +37,8 @@ **/ class YQGenericButton : public QWidget, public YPushButton { + friend class YQDialog; + Q_OBJECT protected: @@ -156,7 +158,8 @@ **/ YQDialog * dialog(); - + void forgetDialog(); + private: YQDialog * _dialog; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org