mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-06 00:14:20 +01:00
Clear cache on file change
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user