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,7 +61,7 @@ class txtGallery : public FileGallery | ||
| 61 | 61 | ||
| 62 | if (!line.isEmpty()){ | 62 | if (!line.isEmpty()){ |
| 63 | int splitIndex = line.lastIndexOf(' '); | 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 | else templates.append(File(line.mid(0, splitIndex), line.mid(splitIndex+1))); | 65 | else templates.append(File(line.mid(0, splitIndex), line.mid(splitIndex+1))); |
| 66 | templates.last().file.set("progress", this->position()); | 66 | templates.last().file.set("progress", this->position()); |
| 67 | } | 67 | } |