Skip to content

Commit

Permalink
fixed incorrect indexes on workouttreemodel if a new watch arrives
Browse files Browse the repository at this point in the history
  • Loading branch information
altera2015 committed Aug 27, 2015
1 parent ccafd06 commit c7a1bcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define VER_FILEVERSION 1,8,0,0
#define VER_FILEVERSION_STR "1.8.0"
#define VER_FILEVERSION 1,8,1,0
#define VER_FILEVERSION_STR "1.8.1"
2 changes: 1 addition & 1 deletion src/workouttreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ void WorkoutTreeModel::process(const QString &filename, bool full)
{
if ( newlyCreated )
{
beginInsertRows(QModelIndex(),m_WatchItems.count()+1,m_WatchItems.count()+1);
beginInsertRows(QModelIndex(),m_WatchItems.count(),m_WatchItems.count());
}
else
{
Expand Down

0 comments on commit c7a1bcb

Please sign in to comment.