From 03be5914dad067e48170830dd3c3f927c2a6160b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 27 May 2015 12:05:17 +0200 Subject: [PATCH] fixed bug causing covers not being loaded when a library is in a network folder --- YACReaderLibrary/db/comic_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/db/comic_model.cpp b/YACReaderLibrary/db/comic_model.cpp index 6afb7053..33ddf459 100644 --- a/YACReaderLibrary/db/comic_model.cpp +++ b/YACReaderLibrary/db/comic_model.cpp @@ -279,7 +279,7 @@ QVariant ComicModel::data(const QModelIndex &index, int role) const else if (role == RatingRole) return item->data(Rating); else if (role == CoverPathRole) - return "file:///"+_databasePath+"/covers/"+item->data(Hash).toString()+".jpg"; + return QUrl("file:"+_databasePath+"/covers/"+item->data(Hash).toString()+".jpg"); else if (role == NumPagesRole) return item->data(NumPages); else if (role == CurrentPageRole)