Prevent crashing from ntqvaluelist in ~TQApplication, when closing the app

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
pull/2/head
Emanoil Kotsev 2 years ago
parent 7293390eed
commit bab378b17c
No known key found for this signature in database
GPG Key ID: F1EEB8CD9FB16A50

@ -291,10 +291,13 @@ KrecipesView::KrecipesView( TQWidget *parent )
KrecipesView::~KrecipesView() KrecipesView::~KrecipesView()
{ {
delete buttonsList; if (buttonsList)
delete viewPanel; //manually delete viewPanel because we need to be sure it is deleted delete buttonsList;
if (viewPanel)
delete viewPanel; //manually delete viewPanel because we need to be sure it is deleted
//before the database is because its destructor uses 'database' //before the database is because its destructor uses 'database'
delete database; if (database)
delete database;
} }
bool KrecipesView::questionRerunWizard( const TQString &message, const TQString &error ) bool KrecipesView::questionRerunWizard( const TQString &message, const TQString &error )

Loading…
Cancel
Save