From b5f164251d83ff3ce38f81806ab2b6b63642e065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 26 Nov 2014 21:55:33 +0100 Subject: [PATCH] fixed validation regexp for folders' names --- YACReaderLibrary/library_window.cpp | 3 ++- YACReaderLibrary/yacreader_navigation_controller.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index c85cf2dd..d818ab71 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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) diff --git a/YACReaderLibrary/yacreader_navigation_controller.cpp b/YACReaderLibrary/yacreader_navigation_controller.cpp index 5a3cb0a9..65b500de 100644 --- a/YACReaderLibrary/yacreader_navigation_controller.cpp +++ b/YACReaderLibrary/yacreader_navigation_controller.cpp @@ -205,7 +205,6 @@ void YACReaderNavigationController::selectedIndexFromHistory(const YACReaderLibr libraryWindow->clearSearchFilter(); } - //TODO more info about mi is needed (folder, lists...) loadIndexFromHistory(sourceContainer); }