mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 23:14:16 +01:00
fixed crash when QFileDialog is closed without selecting a file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user