diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-25 23:43:25 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-25 23:43:25 (GMT) |
| commit | bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8 (patch) | |
| tree | 644bbe8435b3f31c738325cf55419860dd9fa6f4 /src/gui/preview/PreviewModel.cpp | |
| parent | beff3db8d291b00b47fc13a1b936fa4419e3d78d (diff) | |
| download | powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.zip powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.tar.gz | |
instant save option option, hold ctrl when clicking a save in the save preview to skip the entire preview and not load the comments
Diffstat (limited to 'src/gui/preview/PreviewModel.cpp')
| -rw-r--r-- | src/gui/preview/PreviewModel.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/preview/PreviewModel.cpp b/src/gui/preview/PreviewModel.cpp index 88b281b..6776445 100644 --- a/src/gui/preview/PreviewModel.cpp +++ b/src/gui/preview/PreviewModel.cpp @@ -139,13 +139,16 @@ void PreviewModel::UpdateSave(int saveID, int saveDate) pthread_create(&updateSaveInfoThread, 0, &PreviewModel::updateSaveInfoT, updateSaveInfoInfo); } - if (!updateSaveCommentsInfo) - updateSaveCommentsInfo = new threadInfo(saveID, commentsPageNumber); - if (updateSaveCommentsInfo->threadFinished) + if (!GetDoOpen()) { - commentsLoaded = false; - updateSaveCommentsInfo->threadFinished = false; - pthread_create(&updateSaveCommentsThread, 0, &PreviewModel::updateSaveCommentsT, updateSaveCommentsInfo); + if (!updateSaveCommentsInfo) + updateSaveCommentsInfo = new threadInfo(saveID, commentsPageNumber); + if (updateSaveCommentsInfo->threadFinished) + { + commentsLoaded = false; + updateSaveCommentsInfo->threadFinished = false; + pthread_create(&updateSaveCommentsThread, 0, &PreviewModel::updateSaveCommentsT, updateSaveCommentsInfo); + } } } |
