comparison main/MainWindow.cpp @ 573:0b094b0fdcc4

Clean up more tidily on exit
author Chris Cannam
date Thu, 16 May 2013 14:05:21 +0100
parents e5e6625deb85
children e8881f405b8f ba338234c001
comparison
equal deleted inserted replaced
571:94924cab11c8 573:0b094b0fdcc4
304 connect(m_midiInput, SIGNAL(eventsAvailable()), 304 connect(m_midiInput, SIGNAL(eventsAvailable()),
305 this, SLOT(midiEventsAvailable())); 305 this, SLOT(midiEventsAvailable()));
306 306
307 TransformFactory::getInstance()->startPopulationThread(); 307 TransformFactory::getInstance()->startPopulationThread();
308 308
309 VersionTester *vt = new VersionTester 309 m_versionTester = new VersionTester
310 ("sonicvisualiser.org", "/latest-version.txt", SV_VERSION); 310 ("sonicvisualiser.org", "/latest-version.txt", SV_VERSION);
311 connect(vt, SIGNAL(newerVersionAvailable(QString)), 311 connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)),
312 this, SLOT(newerVersionAvailable(QString))); 312 this, SLOT(newerVersionAvailable(QString)));
313 } 313 }
314 314
315 MainWindow::~MainWindow() 315 MainWindow::~MainWindow()
316 { 316 {
317 // SVDEBUG << "MainWindow::~MainWindow" << endl; 317 // SVDEBUG << "MainWindow::~MainWindow" << endl;
318 delete m_keyReference; 318 delete m_keyReference;
319 delete m_activityLog; 319 delete m_activityLog;
320 delete m_preferencesDialog; 320 delete m_preferencesDialog;
321 delete m_layerTreeDialog; 321 delete m_layerTreeDialog;
322 delete m_versionTester;
322 Profiles::getInstance()->dump(); 323 Profiles::getInstance()->dump();
323 // SVDEBUG << "MainWindow::~MainWindow finishing" << endl; 324 // SVDEBUG << "MainWindow::~MainWindow finishing" << endl;
324 } 325 }
325 326
326 void 327 void