Fix the model (same issue as in Holiday Planner, beginInsertRows is inclusive)
This commit is contained in:
		
					parent
					
						
							
								259696741c
							
						
					
				
			
			
				commit
				
					
						3c9a4de1ad
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -55,7 +55,7 @@ namespace Danbooru {
 | 
				
			||||||
    void DanbooruPostModel::addPost(Danbooru::DanbooruPost* post)
 | 
					    void DanbooruPostModel::addPost(Danbooru::DanbooruPost* post)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        beginInsertRows(QModelIndex(), m_items.size(), m_items.size() + 1);
 | 
					        beginInsertRows(QModelIndex(), m_items.size(), m_items.size());
 | 
				
			||||||
        m_items.append(post);
 | 
					        m_items.append(post);
 | 
				
			||||||
        endInsertRows();
 | 
					        endInsertRows();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue