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

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
(cherry picked from commit bab378b17c)
r14.0.x
Emanoil Kotsev 2 years ago committed by Slávek Banko
parent cc59cb87d0
commit f37f3213ba
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -291,10 +291,13 @@ KrecipesView::KrecipesView( TQWidget *parent )
KrecipesView::~KrecipesView()
{
delete buttonsList;
delete viewPanel; //manually delete viewPanel because we need to be sure it is deleted
if (buttonsList)
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'
delete database;
if (database)
delete database;
}
bool KrecipesView::questionRerunWizard( const TQString &message, const TQString &error )

Loading…
Cancel
Save