From 35001d4c457fc6dd5be560a1701c8ed93695931b Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 1 Dec 2015 15:07:56 -0500 Subject: [PATCH] use parent folder name as label --- openbr/plugins/gallery/txt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/gallery/txt.cpp b/openbr/plugins/gallery/txt.cpp index d62106f..3070471 100644 --- a/openbr/plugins/gallery/txt.cpp +++ b/openbr/plugins/gallery/txt.cpp @@ -61,7 +61,7 @@ class txtGallery : public FileGallery if (!line.isEmpty()){ int splitIndex = line.lastIndexOf(' '); - if (splitIndex == -1) templates.append(File(line)); + if (splitIndex == -1) templates.append(File(line, QFileInfo(line).dir().dirName())); else templates.append(File(line.mid(0, splitIndex), line.mid(splitIndex+1))); templates.last().file.set("progress", this->position()); } -- libgit2 0.21.4