| 1012 | } |
| 1013 | |
| 1014 | void MainWindowViewer::openComic(QString pathFile) |
| 1015 | { |
| 1016 | QFileInfo fi(pathFile); |
| 1017 | currentDirectory = fi.dir().absolutePath(); |
| 1018 | currentComicPath = fi.absoluteFilePath(); |
| 1019 | getSiblingComics(fi.absolutePath(), fi.fileName()); |
| 1020 | |
| 1021 | setWindowTitle("YACReader - " + fi.fileName()); |
| 1022 | |
| 1023 | enableActions(); |
| 1024 | applySavedReaderMode(); |
| 1025 | |
| 1026 | viewer->open(pathFile); |
| 1027 | Configuration::getConfiguration().updateOpenRecentList(fi.absoluteFilePath()); |
| 1028 | refreshRecentFilesActionList(); |
| 1029 | } |
| 1030 | |
| 1031 | void MainWindowViewer::openFolder() |
| 1032 | { |
nothing calls this directly
no test coverage detected