Commit 547c2198 authored by David Fuhrmann's avatar David Fuhrmann

macosx: Open panel: Only trigger MRL update if disc section is active

As disc scanning is asyncronous, MRL might be updated with disc
MRL when not desired.

refs #17715
parent 8e02f2ac
......@@ -911,7 +911,9 @@ static NSString *kCaptureTabViewId = @"capture";
if (selection && [selection boolValue])
[_discSelectorPopup selectItemAtIndex: [[_discSelectorPopup itemArray] count] - 1];
[self discSelectorChanged:nil];
// only trigger MRL update if the tab view is active
if ([[[_tabView selectedTabViewItem] identifier] isEqualToString:kDiscTabViewId])
[self discSelectorChanged:nil];
} else {
msg_Dbg(getIntf(), "no optical media found");
[_discSelectorPopup setHidden: YES];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment