Skip to content

Commit

Permalink
Limit length of every dir/file created to 75 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertKrajewski committed Apr 27, 2019
1 parent 81d9daa commit b0a492b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.cpp
Expand Up @@ -41,7 +41,10 @@ QString Utils::getElementLocalPath(Structureelement *item, QString downloadDirec
Structureelement* parent = item;
while ((parent = (Structureelement*) parent->parent()) != 0)
{
path.push_front(parent->text() % "/");
auto element_text = parent->text();
if(element_text.length() > 75)
element_text = element_text.left(75);
path.push_front(element_text % "/");
}

// Downloadverzeichnis
Expand Down

0 comments on commit b0a492b

Please sign in to comment.