aboutsummaryrefslogtreecommitdiff
path: root/src/ImageViewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ImageViewer.cpp')
-rw-r--r--src/ImageViewer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ImageViewer.cpp b/src/ImageViewer.cpp
index 77c53b4..b544165 100644
--- a/src/ImageViewer.cpp
+++ b/src/ImageViewer.cpp
@@ -8,7 +8,7 @@
#include <SFML/Graphics/RectangleShape.hpp>
namespace QuickMedia {
- ImageViewer::ImageViewer(Manga *manga, const std::string &images_url, const std::string &content_title, const std::string &chapter_title, int current_page, const Path &chapter_cache_dir, sf::Font *font) :
+ ImageViewer::ImageViewer(MangaImagesPage *manga_images_page, const std::string &content_title, const std::string &chapter_title, int current_page, const Path &chapter_cache_dir, sf::Font *font) :
current_page(current_page),
num_pages(0),
content_title(content_title),
@@ -18,7 +18,7 @@ namespace QuickMedia {
font(font),
page_text("", *font, 14)
{
- if(manga->get_number_of_images(images_url, num_pages) != ImageResult::OK) {
+ if(manga_images_page->get_number_of_images(num_pages) != ImageResult::OK) {
show_notification("Plugin", "Failed to get number of images", Urgency::CRITICAL);
return;
}