diff --git a/spectrogramcontrols.cpp b/spectrogramcontrols.cpp index cfcb102..c004224 100644 --- a/spectrogramcontrols.cpp +++ b/spectrogramcontrols.cpp @@ -127,7 +127,8 @@ void SpectrogramControls::fileOpenButtonClicked() QString fileName = QFileDialog::getOpenFileName( this, tr("Open File"), "", tr("Sample file (*.cfile *.bin);;All files (*)") ); - emit openFile(fileName); + if (!fileName.isEmpty()) + emit openFile(fileName); } void SpectrogramControls::timeSelectionChanged(float time)