Commit aba13572 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: fix auto play when adding a new file with file dialogs

The issue was that we had 2 VLCPlaylist objects although they should be only one. Therefore this commit removes the wrong one in Open.xib
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 3ed6c009
......@@ -38,9 +38,6 @@
<object class="NSCustomObject" id="436853527">
<string key="NSClassName">NSApplication</string>
</object>
<object class="NSCustomObject" id="752055462">
<string key="NSClassName">VLCPlaylist</string>
</object>
<object class="NSCustomObject" id="609169471">
<string key="NSClassName">VLCOpen</string>
</object>
......@@ -5177,14 +5174,6 @@ eHQAAAAAQ29weXJpZ2h0IEFwcGxlLCBJbmMuLCAyMDA5AA</bytes>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_playlist</string>
<reference key="source" ref="609169471"/>
<reference key="destination" ref="752055462"/>
</object>
<int key="connectionID">410</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">panelCancel:</string>
......@@ -7661,12 +7650,6 @@ eHQAAAAAQ29weXJpZ2h0IEFwcGxlLCBJbmMuLCAyMDA5AA</bytes>
<reference key="parent" ref="0"/>
<string key="objectName">Application</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">269</int>
<reference key="object" ref="752055462"/>
<reference key="parent" ref="0"/>
<string key="objectName">VLCPlaylist</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">408</int>
<reference key="object" ref="609169471"/>
......@@ -12785,22 +12768,6 @@ eHQAAAAAQ29weXJpZ2h0IEFwcGxlLCBJbmMuLCAyMDA5AA</bytes>
<string key="minorKey"/>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">VLCPlaylist</string>
<string key="superclassName">VLCPlaylistCommon</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">VLCPlaylistCommon</string>
<string key="superclassName">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
</object>
</object>
</object>
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+">
<bool key="EncodedWithXMLCoder">YES</bool>
......
......@@ -29,8 +29,6 @@
*****************************************************************************/
@interface VLCOpen : NSObject
{
IBOutlet id o_playlist;
IBOutlet id o_panel;
IBOutlet id o_mrl_fld;
......
......@@ -448,9 +448,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
/* apply the options to our item(s) */
[o_dic setObject: (NSArray *)[o_options copy] forKey: @"ITEM_OPTIONS"];
if( b_autoplay )
[o_playlist appendArray: [NSArray arrayWithObject: o_dic] atPos: -1 enqueue:NO];
[[[VLCMain sharedInstance] playlist] appendArray: [NSArray arrayWithObject: o_dic] atPos: -1 enqueue:NO];
else
[o_playlist appendArray: [NSArray arrayWithObject: o_dic] atPos: -1 enqueue:YES];
[[[VLCMain sharedInstance] playlist] appendArray: [NSArray arrayWithObject: o_dic] atPos: -1 enqueue:YES];
}
}
......@@ -1154,9 +1154,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_array addObject: o_dic];
}
if( b_autoplay )
[o_playlist appendArray: o_array atPos: -1 enqueue:NO];
[[[VLCMain sharedInstance] playlist] appendArray: o_array atPos: -1 enqueue:NO];
else
[o_playlist appendArray: o_array atPos: -1 enqueue:YES];
[[[VLCMain sharedInstance] playlist] appendArray: o_array atPos: -1 enqueue: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