diff --git a/po/sturmreader.pot b/po/sturmreader.pot index 164ffdd..52dae3e 100644 --- a/po/sturmreader.pot +++ b/po/sturmreader.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: sturmreader.emanuelesorce\n" "Report-Msgid-Bugs-To: emanuele.sorce@hotmail.com\n" -"POT-Creation-Date: 2021-03-04 12:02+0000\n" +"POT-Creation-Date: 2021-03-04 12:26+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/ui/qml/BookPage.qml b/ui/qml/BookPage.qml index e8aa270..2f93a39 100644 --- a/ui/qml/BookPage.qml +++ b/ui/qml/BookPage.qml @@ -266,12 +266,9 @@ Page { Action { icon.name: "go-home" onTriggered: { - // turn stuff off and exit content.close(); controls.close(); - controls.interactive = false; - pageStack.pop() - mainView.title = mainView.defaultTitle + closeFile(); } } ] diff --git a/ui/qml/Main.qml b/ui/qml/Main.qml index dfdc956..f2ecf39 100644 --- a/ui/qml/Main.qml +++ b/ui/qml/Main.qml @@ -158,7 +158,15 @@ ApplicationWindow { converter.converted_filename = dir + "/" + newfilename; } + // close file + function closeFile() { + while (pageStack.currentItem != localBooks) + pageStack.pop() + bookPage.destroy(); + mainView.title = mainView.defaultTitle; + } + // Open file function loadFile(filename) { if (server.reader.load(filename)) { while (pageStack.currentItem != localBooks)