fix default preview image
This commit is contained in:
parent
a4006ea015
commit
20094b0cf2
4 changed files with 6 additions and 7 deletions
|
|
@ -34,12 +34,10 @@ bool NavigationItemModel::setPath(const QString &path)
|
|||
|
||||
/// @todo move default image to qrc
|
||||
auto source = dir.filePath("image.jpg");
|
||||
if(QFile(source).exists())
|
||||
if(QFile(source).exists()){
|
||||
mImageSource = "file:///" + source;
|
||||
else
|
||||
mImageSource = "file:///home/ar/source/LenaPi/pics/benjamin.jpeg";
|
||||
|
||||
emit imageSourceChanged();
|
||||
emit imageSourceChanged();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue