We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b33a8 commit 161258dCopy full SHA for 161258d
1 file changed
src/application/utility/downloaded_books_tracker.cpp
@@ -22,11 +22,16 @@ std::vector<Book> DownloadedBooksTracker::getTrackedBooks()
22
std::vector<Book> books;
23
for(auto& metaFileName : libraryDir.entryList(QDir::Files))
24
{
25
+ // Skip over files which are not meta files
26
+ if(!metaFileName.endsWith(m_fileExtension))
27
+ continue;
28
+
29
QFile metaFile(libraryDir.filePath(metaFileName));
30
if(!metaFile.open(QFile::ReadOnly | QIODevice::Text))
31
32
qWarning() << QString("Getting tracked book failed."
- "Failed opening .libmeta file at: %1")
33
+ "Failed opening " +
34
+ m_fileExtension + " file at: %1")
35
.arg(metaFile.fileName());
36
continue;
37
}
0 commit comments