summaryrefslogtreecommitdiff
path: root/src/stamps/StampsModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stamps/StampsModel.cpp')
-rw-r--r--src/stamps/StampsModel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stamps/StampsModel.cpp b/src/stamps/StampsModel.cpp
index f76d4f1..b679d13 100644
--- a/src/stamps/StampsModel.cpp
+++ b/src/stamps/StampsModel.cpp
@@ -11,7 +11,8 @@
#include "StampsModelException.h"
StampsModel::StampsModel():
- stamp(NULL)
+ stamp(NULL),
+ currentPage(1)
{
// TODO Auto-generated constructor stub
stampIDs = Client::Ref().GetStamps();
@@ -27,6 +28,7 @@ void StampsModel::AddObserver(StampsView * observer)
{
observers.push_back(observer);
observer->NotifyStampsListChanged(this);
+ observer->NotifyPageChanged(this);
}
void StampsModel::notifyStampsListChanged()
@@ -61,6 +63,8 @@ void StampsModel::UpdateStampsList(int pageNumber)
{
std::vector<Save*> tempStampsList = stampsList;
stampsList.clear();
+ currentPage = pageNumber;
+ notifyPageChanged();
/*notifyStampsListChanged();
for(int i = 0; i < tempStampsList.size(); i++)
{