diff --git a/include/manager.h b/include/manager.h index d6e0144d7..6fb74d220 100644 --- a/include/manager.h +++ b/include/manager.h @@ -129,7 +129,7 @@ class Manager * * @return The id of the current book (or empty string if no current book). */ - string getCurrentBookId(); + string getCurrentBookId() const; /** * Set the path of the external fulltext index associated to a book. diff --git a/src/manager.cpp b/src/manager.cpp index 72b0f8ea5..b0e307c53 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -243,7 +243,7 @@ bool Manager::setCurrentBookId(const string id) return true; } -string Manager::getCurrentBookId() +string Manager::getCurrentBookId() const { return library.current.empty() ? "" : library.current.top(); }