summaryrefslogtreecommitdiff
path: root/client/widgets/dbwidget.cc
diff options
context:
space:
mode:
authordeva <deva>2008-09-04 12:25:09 +0000
committerdeva <deva>2008-09-04 12:25:09 +0000
commit26dc58fb696ac1f96e018fbae7083d1ba2a1a55a (patch)
tree8fd6e55c2428c883d023677134b7a6e558246546 /client/widgets/dbwidget.cc
parent4dd7add65ed2648e7c139df3138e489f8dbd8e43 (diff)
Made macrowindow clean up proprely when closed (thus terminating dangling db connections through dbwidget).
Diffstat (limited to 'client/widgets/dbwidget.cc')
-rw-r--r--client/widgets/dbwidget.cc1
1 files changed, 1 insertions, 0 deletions
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();
}