Clear cache on file change

This commit is contained in:
Mike
2015-09-24 20:25:59 +01:00
parent f6a408f554
commit 7374c69c96

View File

@@ -39,6 +39,8 @@ void Spectrogram::openFile(QString fileName)
try {
InputSource *newFile = new InputSource(fileName.toUtf8().constData());
delete inputSource;
pixmapCache.clear();
fftCache.clear();
inputSource = newFile;
resize(fftSize, getHeight());
} catch (std::runtime_error e) {