delete MainWindow on close

This commit is contained in:
Sean Rhea
2009-12-13 12:53:57 -05:00
parent 6b7afe3353
commit 0dc9f6a4c0

View File

@@ -93,6 +93,8 @@ MainWindow::MainWindow(const QDir &home) :
zones_(new Zones), currentNotesChanged(false),
ride(NULL)
{
setAttribute(Qt::WA_DeleteOnClose);
settings = GetApplicationSettings();
QVariant unit = settings->value(GC_UNIT);