Skip to content

Commit

Permalink
I hate that MSVC bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Dec 4, 2024
1 parent a735b14 commit 89a72d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/surge-xt/gui/widgets/OscillatorWaveformDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,13 @@ void OscillatorWaveformDisplay::populateMenu(juce::PopupMenu &contextMenu, int s
}

auto nm = isWav ? "Export WAV Wavetable" : "Export WT Wavetable";
auto that = this; // i hate msvc
sge->fileChooser =
std::make_unique<juce::FileChooser>(nm, juce::File(path.u8string().c_str()));
sge->fileChooser->launchAsync(
juce::FileBrowserComponent::saveMode | juce::FileBrowserComponent::canSelectFiles |
juce::FileBrowserComponent::warnAboutOverwriting,
[w = this, isWav](const juce::FileChooser &c) {
[w = that, isWav](const juce::FileChooser &c) {
auto result = c.getResults();
if (result.isEmpty() || result.size() > 1)
{
Expand Down

0 comments on commit 89a72d1

Please sign in to comment.