diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-26 01:13:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-26 01:13:33 (GMT) |
| commit | 9e1be78bc21d1fb76a19ce12ef36193aea6e2b93 (patch) | |
| tree | 081b67d551bb44fecbf6deb99b6c44ea9789614c /src/preview/PreviewModel.cpp | |
| parent | b2d3257ae944a3ea3b57dc8ee4171b1b2f85483e (diff) | |
| download | powder-9e1be78bc21d1fb76a19ce12ef36193aea6e2b93.zip powder-9e1be78bc21d1fb76a19ce12ef36193aea6e2b93.tar.gz | |
I've got to a point where I can no longer be bothered to think of a proper commit comment
Diffstat (limited to 'src/preview/PreviewModel.cpp')
| -rw-r--r-- | src/preview/PreviewModel.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/preview/PreviewModel.cpp b/src/preview/PreviewModel.cpp index 0e03490..07396cb 100644 --- a/src/preview/PreviewModel.cpp +++ b/src/preview/PreviewModel.cpp @@ -10,7 +10,8 @@ PreviewModel::PreviewModel(): save(NULL), - savePreview(NULL) + savePreview(NULL), + doOpen(false) { // TODO Auto-generated constructor stub @@ -24,6 +25,16 @@ void PreviewModel::UpdateSave(int saveID, int saveDate) notifyPreviewChanged(); } +void PreviewModel::SetDoOpen(bool doOpen) +{ + this->doOpen = doOpen; +} + +bool PreviewModel::GetDoOpen() +{ + return doOpen; +} + Thumbnail * PreviewModel::GetPreview() { return savePreview; @@ -57,6 +68,9 @@ void PreviewModel::AddObserver(PreviewView * observer) { } PreviewModel::~PreviewModel() { - // TODO Auto-generated destructor stub + if(save) + delete save; + if(savePreview) + delete savePreview; } |
