QTfrontend/util/DataManager.cpp
changeset 9389 3aae70f72126
parent 9080 9b42757d7e71
child 9744 1ee4842a9c86
--- a/QTfrontend/util/DataManager.cpp	Tue Aug 13 16:12:54 2013 +0400
+++ b/QTfrontend/util/DataManager.cpp	Fri Aug 16 12:27:41 2013 +0400
@@ -199,6 +199,15 @@
     return m_settingsFileName;
 }
 
+QString DataManager::safeFileName(QString fileName)
+{
+    fileName.replace('\\', '_');
+    fileName.replace('/', '_');
+    fileName.replace(':', '_');
+
+    return fileName;
+}
+
 void DataManager::reload()
 {
     // removed for now (also code was a bit unclean, could lead to segfault if