summaryrefslogtreecommitdiff
path: root/src/preview/PreviewModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/preview/PreviewModel.cpp')
-rw-r--r--src/preview/PreviewModel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/preview/PreviewModel.cpp b/src/preview/PreviewModel.cpp
index 8b327f9..2abccff 100644
--- a/src/preview/PreviewModel.cpp
+++ b/src/preview/PreviewModel.cpp
@@ -248,6 +248,7 @@ void PreviewModel::Update()
if(updateSaveInfoFinished && save)
{
+ commentsTotal = save->Comments;
try
{
save->SetGameSave(new GameSave(&saveDataBuffer[0], saveDataBuffer.size()));
@@ -257,6 +258,7 @@ void PreviewModel::Update()
throw PreviewModelException("Save file corrupt or from newer version");
}
notifySaveChanged();
+ notifyCommentsPageChanged();
}
}
}
@@ -285,7 +287,7 @@ void PreviewModel::Update()
}
}
notifySaveChanged();
- notifyCommentsPageChanged();
+
if(!save)
throw PreviewModelException("Unable to load save");
}