From 26dc58fb696ac1f96e018fbae7083d1ba2a1a55a Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 4 Sep 2008 12:25:09 +0000 Subject: Made macrowindow clean up proprely when closed (thus terminating dangling db connections through dbwidget). --- client/widgets/dbwidget.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'client/widgets') diff --git a/client/widgets/dbwidget.cc b/client/widgets/dbwidget.cc index 69c868e..1c0a0d2 100644 --- a/client/widgets/dbwidget.cc +++ b/client/widgets/dbwidget.cc @@ -94,6 +94,7 @@ DBWidget::DBWidget(QDomNode &node, MacroWindow *macrowindow) DBWidget::~DBWidget() { db.close(); + db = QSqlDatabase(); } -- cgit v1.2.3