replace ?, :, and % with _ for touch builds
This commit is contained in:
committed by
craig.p.drummond
parent
eb34a2bcd5
commit
7ceead0289
@@ -291,6 +291,12 @@ const char * Covers::imageFormat(const QByteArray &data)
|
||||
QString Covers::encodeName(QString name)
|
||||
{
|
||||
name.replace("/", "_");
|
||||
#ifdef ENABLE_UBUNTU
|
||||
// qrc:/ does not seem to like ?
|
||||
name.replace("?", "_");
|
||||
name.replace(":", "_");
|
||||
name.replace("%", "_");
|
||||
#endif
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user