Fix cancel button behaviour on waveform open dialog