Commit 3b9428fd authored by Frerich Raabe's avatar Frerich Raabe

- Strip directory separators from the tokens before inserting them into the

  filename scheme.

svn path=/trunk/kdemultimedia/juk/; revision=248890
parent f6bddb0f
......@@ -84,6 +84,10 @@ QString FileRenamer::expandToken(TokenType type, const QString &value) const
QString token = m_cfg.getToken(type);
token.replace("%s", value);
if(token.find(QDir::separator()) > -1) {
kdWarning() << "Found token value with dir separators!" << endl;
token.replace(QDir::separator(), "");
return token;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment