fixed validation regexp for folders' names

This commit is contained in:
Luis Ángel San Martín 2014-11-26 21:55:33 +01:00
parent c2f4ab403c
commit b5f164251d
2 changed files with 2 additions and 2 deletions

View File

@ -1517,7 +1517,8 @@ void LibraryWindow::addFolderToCurrentIndex()
tr("Folder name:"), QLineEdit::Normal,
"", &ok);
QRegExp invalidChars("\/\\\:\*\?\"\<\>\|");//TODO this regexp is not properly written
//chars not supported in a folder's name: / \ : * ? " < > |
QRegExp invalidChars("\\/\\:\\*\\?\\\"\\<\\>\\|\\\\");//TODO this regexp is not properly written
bool isValid = !newFolderName.contains(invalidChars);
if (ok && !newFolderName.isEmpty() && isValid)

View File

@ -205,7 +205,6 @@ void YACReaderNavigationController::selectedIndexFromHistory(const YACReaderLibr
libraryWindow->clearSearchFilter();
}
//TODO more info about mi is needed (folder, lists...)
loadIndexFromHistory(sourceContainer);
}