diff options
author | Itay Grudev <itay@grudev.com> | 2015-02-26 19:09:45 +0000 |
---|---|---|
committer | Itay Grudev <itay@grudev.com> | 2015-02-26 19:09:45 +0000 |
commit | e16742fe4e817fd88b6cc0fd09e5107de87b83bd (patch) | |
tree | f588e7a0b8b735348de8cead034ee55ba2006911 | |
parent | Deleted unnecesarry files (diff) | |
download | singleapplication-e16742fe4e817fd88b6cc0fd09e5107de87b83bd.tar.xz |
Using Regex to remove invalid Filename Charecters
-rw-r--r-- | singleapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp index 5a4d37a..083ea30 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -13,7 +13,7 @@ SingleApplication::SingleApplication(int argc, char *argv[]) { QString serverName = QApplication::organizationName() + QApplication::applicationName(); - serverName.replace(QRegExp("\\s"), ""); + serverName.replace(QRegExp("[^\\w\\-. ]"), ""); // Attempt to connect to the LocalServer socket = new QLocalSocket(); |