diff options
Diffstat (limited to 'src/preview/PreviewController.cpp')
| -rw-r--r-- | src/preview/PreviewController.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/preview/PreviewController.cpp b/src/preview/PreviewController.cpp index b81ccda..651db32 100644 --- a/src/preview/PreviewController.cpp +++ b/src/preview/PreviewController.cpp @@ -124,12 +124,9 @@ void PreviewController::FavouriteSave() void PreviewController::OpenInBrowser() { - if(previewModel->GetSave()) - { - std::stringstream uriStream; - uriStream << "http://" << SERVER << "/Browse/View.html?ID=" << previewModel->GetSave()->id; - OpenURI(uriStream.str()); - } + std::stringstream uriStream; + uriStream << "http://" << SERVER << "/Browse/View.html?ID=" << saveId; + OpenURI(uriStream.str()); } void PreviewController::NextCommentPage() |
