Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 619:0e95c30d6680 import-audio-data
Avoid leaking dialogs
author | Chris Cannam |
---|---|
date | Fri, 07 Sep 2018 16:14:19 +0100 |
parents | 636a5908cf81 |
children | 22e455beee3b |
comparison
equal
deleted
inserted
replaced
618:636a5908cf81 | 619:0e95c30d6680 |
---|---|
1864 if (dialog->exec() == QDialog::Accepted) { | 1864 if (dialog->exec() == QDialog::Accepted) { |
1865 model = DataFileReaderFactory::loadCSV | 1865 model = DataFileReaderFactory::loadCSV |
1866 (path, dialog->getFormat(), | 1866 (path, dialog->getFormat(), |
1867 getMainModel()->getSampleRate()); | 1867 getMainModel()->getSampleRate()); |
1868 } | 1868 } |
1869 delete dialog; | |
1869 } | 1870 } |
1870 | 1871 |
1871 if (model) { | 1872 if (model) { |
1872 | 1873 |
1873 SVDEBUG << "MainWindowBase::openLayer: Have model" << endl; | 1874 SVDEBUG << "MainWindowBase::openLayer: Have model" << endl; |