mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-19 05:26:07 -04:00
fixed (again) bug with bad chars notification
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6007 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ab01e46f44
commit
6571279b70
@ -856,6 +856,7 @@ static void processList(const QStringList &list, const QString &textSingular, co
|
||||
/*static*/ int RetroShareLink::process(const QList<RetroShareLink> &linksIn, uint flag /* = RSLINK_PROCESS_NOTIFY_ALL*/)
|
||||
{
|
||||
QList<RetroShareLink>::const_iterator linkIt;
|
||||
flag &= ~RSLINK_PROCESS_NOTIFY_BAD_CHARS ; // this will be set below when needed
|
||||
|
||||
/* filter dublicate links */
|
||||
QList<RetroShareLink> links;
|
||||
@ -1062,7 +1063,6 @@ static void processList(const QStringList &list, const QString &textSingular, co
|
||||
|
||||
QString cleanname = link.name() ;
|
||||
static const QString bad_chars_str = "/\\\"*:?<>|" ;
|
||||
flag &= ~RSLINK_PROCESS_NOTIFY_BAD_CHARS ;
|
||||
|
||||
for(uint32_t i=0;i<cleanname.length();++i)
|
||||
for(uint32_t j=0;j<bad_chars_str.length();++j)
|
||||
|
Loading…
x
Reference in New Issue
Block a user