aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'singleapplication.cpp')
-rw-r--r--singleapplication.cpp2
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();