Skip to content

Commit

Permalink
Fix Error when selecting blog with non-default collection assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas694 committed Dec 4, 2021
1 parent 513dbaa commit 592c132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TumblThree/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

[assembly: ComVisible(false)]
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)]
[assembly: AssemblyVersion("2.4.3.0")]
[assembly: AssemblyFileVersion("2.4.3.0")]
[assembly: AssemblyVersion("2.4.4.0")]
[assembly: AssemblyFileVersion("2.4.4.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void ViewFullScreenMedia()
public bool ChangeCollection(IBlog blog, IList<Collection> oldItem, IList<Collection> newItem)
{
if (oldItem == null || oldItem.Count == 0 || newItem == null || newItem.Count == 0) return false;
if (blog.CollectionId == newItem[0].Id) return false;

if (QueueManager.Items.Any(x => x.Blog.Name == blog.Name && x.Blog.OriginalBlogType == blog.OriginalBlogType))
{
Expand Down

0 comments on commit 592c132

Please sign in to comment.