From 2a3f7668ba75f01bc20b5fa0745eaef0136c98f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?=
 <luisangelsm@gmail.com>
Date: Sat, 16 Jan 2021 18:27:16 +0100
Subject: [PATCH] Rename method

---
 YACReader/main_window_viewer.cpp | 12 ++++++------
 YACReader/main_window_viewer.h   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp
index c988259b..fc8a7695 100644
--- a/YACReader/main_window_viewer.cpp
+++ b/YACReader/main_window_viewer.cpp
@@ -836,7 +836,7 @@ void MainWindowViewer::open(QString path, ComicDB &comic, QList<ComicDB> &siblin
     viewer->open(path, comic);
     enableActions();
     int index = siblings.indexOf(comic);
-    updateOpenPrevNextActions(index > 0, index + 1 < siblings.count());
+    updatePrevNextActions(index > 0, index + 1 < siblings.count());
 
     optionsDialog->setFilters(currentComicDB.info.brightness, currentComicDB.info.contrast, currentComicDB.info.gamma);
 }
@@ -873,7 +873,7 @@ void MainWindowViewer::openComicFromPath(QString pathFile)
     doubleMangaPageAction->setChecked(Configuration::getConfiguration().getDoubleMangaPage());
     openComic(pathFile);
     isClient = false; //this method is used for direct openings
-    updateOpenPrevNextActions(!previousComicPath.isEmpty(), !nextComicPath.isEmpty());
+    updatePrevNextActions(!previousComicPath.isEmpty(), !nextComicPath.isEmpty());
 }
 
 //isClient shouldn't be modified when a siblinig comic is opened
@@ -1401,9 +1401,9 @@ void MainWindowViewer::doubleMangaPageSwitch()
 {
     if (isClient) {
         int index = siblingComics.indexOf(currentComicDB);
-        updateOpenPrevNextActions(index > 0, index + 1 < siblingComics.size());
+        updatePrevNextActions(index > 0, index + 1 < siblingComics.size());
     } else {
-        updateOpenPrevNextActions(!previousComicPath.isEmpty(), !nextComicPath.isEmpty());
+        updatePrevNextActions(!previousComicPath.isEmpty(), !nextComicPath.isEmpty());
     }
 }
 
@@ -1584,7 +1584,7 @@ void MainWindowViewer::getSiblingComics(QString path, QString currentComic)
         nextComicPath = path + "/" + list.at(index + 1);
     }
 
-    updateOpenPrevNextActions(index > 0, index + 1 < list.count());
+    updatePrevNextActions(index > 0, index + 1 < list.count());
 }
 
 void MainWindowViewer::dropEvent(QDropEvent *event)
@@ -1690,7 +1690,7 @@ void MainWindowViewer::sendComic()
     }
 }
 
-void MainWindowViewer::updateOpenPrevNextActions(bool thereIsPrevious, bool thereIsNext)
+void MainWindowViewer::updatePrevNextActions(bool thereIsPrevious, bool thereIsNext)
 {
     if (thereIsPrevious) {
         if (viewer->getIsMangaMode()) {
diff --git a/YACReader/main_window_viewer.h b/YACReader/main_window_viewer.h
index 9d945969..466575c7 100644
--- a/YACReader/main_window_viewer.h
+++ b/YACReader/main_window_viewer.h
@@ -184,7 +184,7 @@ private:
 protected:
     void closeEvent(QCloseEvent *event) override;
     void sendComic();
-    void updateOpenPrevNextActions(bool thereIsPrevious, bool thereIsNext);
+    void updatePrevNextActions(bool thereIsPrevious, bool thereIsNext);
 
 public:
     MainWindowViewer();