From d7f0472b256e57dfdf69cf7b417c55e133e6c8fe Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Mon, 12 Jul 2021 17:58:54 +0200 Subject: [PATCH] SoundPlayer: Activate window only on file drop --- .../Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp b/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp index b3f87ffdfe0..294b3dfd177 100644 --- a/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp +++ b/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp @@ -226,12 +226,12 @@ void SoundPlayerWidgetAdvancedView::set_nonlinear_volume_slider(bool nonlinear) void SoundPlayerWidgetAdvancedView::drop_event(GUI::DropEvent& event) { event.accept(); - window()->move_to_front(); if (event.mime_data().has_urls()) { auto urls = event.mime_data().urls(); if (urls.is_empty()) return; + window()->move_to_front(); open_file(urls.first().path()); } }