Commit 35001d4c457fc6dd5be560a1701c8ed93695931b
1 parent
aa83438c
use parent folder name as label
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/gallery/txt.cpp
| ... | ... | @@ -61,7 +61,7 @@ class txtGallery : public FileGallery |
| 61 | 61 | |
| 62 | 62 | if (!line.isEmpty()){ |
| 63 | 63 | int splitIndex = line.lastIndexOf(' '); |
| 64 | - if (splitIndex == -1) templates.append(File(line)); | |
| 64 | + if (splitIndex == -1) templates.append(File(line, QFileInfo(line).dir().dirName())); | |
| 65 | 65 | else templates.append(File(line.mid(0, splitIndex), line.mid(splitIndex+1))); |
| 66 | 66 | templates.last().file.set("progress", this->position()); |
| 67 | 67 | } | ... | ... |