NSBeginCriticalAlertSheet(_NS("No input"),_NS("OK"),@"",@"",_bookmarksWindow,nil,nil,nil,nil,@"%@",_NS("No input found. A stream must be playing or paused for bookmarks to work."));
NSBeginCriticalAlertSheet(_NS("No input"),_NS("OK"),@"",@"",self.window,nil,nil,nil,nil,@"%@",_NS("No input found. A stream must be playing or paused for bookmarks to work."));
return;
}
if(p_old_input!=p_input){
NSBeginCriticalAlertSheet(_NS("Input has changed"),_NS("OK"),@"",@"",_bookmarksWindow,nil,nil,nil,nil,@"%@",_NS("Input has changed, unable to save bookmark. Suspending playback with \"Pause\" while editing bookmarks to ensure to keep the same input."));
NSBeginCriticalAlertSheet(_NS("Input has changed"),_NS("OK"),@"",@"",self.window,nil,nil,nil,nil,@"%@",_NS("Input has changed, unable to save bookmark. Suspending playback with \"Pause\" while editing bookmarks to ensure to keep the same input."));
vlc_object_release(p_input);
return;
}
...
...
@@ -260,12 +267,12 @@ clear:
#warning this does not work anymore
#if 0
if ([_dataTable numberOfSelectedRows] < 2) {
NSBeginAlertSheet(_NS("Invalid selection"), _NS("OK"), @"", @"", _bookmarksWindow, nil, nil, nil, nil, @"%@",_NS("Two bookmarks have to be selected."));
NSBeginAlertSheet(_NS("Invalid selection"), _NS("OK"), @"", @"", self.window, nil, nil, nil, nil, @"%@",_NS("Two bookmarks have to be selected."));
NSBeginCriticalAlertSheet(_NS("No input found"), _NS("OK"), @"", @"", _bookmarksWindow, nil, nil, nil, nil, @"%@",_NS("The stream must be playing or paused for bookmarks to work."));
NSBeginCriticalAlertSheet(_NS("No input found"), _NS("OK"), @"", @"", self.window, nil, nil, nil, nil, @"%@",_NS("The stream must be playing or paused for bookmarks to work."));