summaryrefslogtreecommitdiff
path: root/Applications/SoundPlayer/SoundPlayerWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/SoundPlayer/SoundPlayerWidget.cpp')
-rw-r--r--Applications/SoundPlayer/SoundPlayerWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/SoundPlayer/SoundPlayerWidget.cpp b/Applications/SoundPlayer/SoundPlayerWidget.cpp
index 082e5738c3..0b416c0833 100644
--- a/Applications/SoundPlayer/SoundPlayerWidget.cpp
+++ b/Applications/SoundPlayer/SoundPlayerWidget.cpp
@@ -120,13 +120,13 @@ void SoundPlayerWidget::hide_scope(bool hide)
void SoundPlayerWidget::open_file(String path)
{
if (!path.ends_with(".wav")) {
- GUI::MessageBox::show("Selected file is not a \".wav\" file!", "Filetype error", GUI::MessageBox::Type::Error);
+ GUI::MessageBox::show(window(), "Selected file is not a \".wav\" file!", "Filetype error", GUI::MessageBox::Type::Error);
return;
}
OwnPtr<Audio::WavLoader> loader = make<Audio::WavLoader>(path);
if (loader->has_error()) {
- GUI::MessageBox::show(
+ GUI::MessageBox::show(window(),
String::format(
"Failed to load WAV file: %s (%s)",
path.characters(),