How can I be that stupid

This commit is contained in:
Nicolas Mailloux 2023-07-20 22:06:03 -04:00
parent 9fce504d64
commit a4b62b6811

View file

@ -726,7 +726,7 @@ reader::~reader()
} }
int reader::setup_book(QString book, int i, bool run_parser) { int reader::setup_book(QString book, int i, bool run_parser) {
// Parse ebook // Parse eBook
if(remount == true) { if(remount == true) {
QString mount_prog ("sh"); QString mount_prog ("sh");
QStringList mount_args; QStringList mount_args;
@ -1849,6 +1849,7 @@ void reader::gotoPage(int pageNumber) {
setup_book(book_file, mupdf::epub::epubPageNumber, true); setup_book(book_file, mupdf::epub::epubPageNumber, true);
ui->text->setText(""); ui->text->setText("");
ui->text->setText(epubPageContent); ui->text->setText(epubPageContent);
global::reader::currentViewportText = ui->text->toHtml();
pagesTurned = 0; pagesTurned = 0;
writeconfig_pagenumber(false); writeconfig_pagenumber(false);