QTfrontend/util/DataManager.cpp
changeset 9389 3aae70f72126
parent 9080 9b42757d7e71
child 9744 1ee4842a9c86
equal deleted inserted replaced
9387:6478ed9ead25 9389:3aae70f72126
   197     }
   197     }
   198 
   198 
   199     return m_settingsFileName;
   199     return m_settingsFileName;
   200 }
   200 }
   201 
   201 
       
   202 QString DataManager::safeFileName(QString fileName)
       
   203 {
       
   204     fileName.replace('\\', '_');
       
   205     fileName.replace('/', '_');
       
   206     fileName.replace(':', '_');
       
   207 
       
   208     return fileName;
       
   209 }
       
   210 
   202 void DataManager::reload()
   211 void DataManager::reload()
   203 {
   212 {
   204     // removed for now (also code was a bit unclean, could lead to segfault if
   213     // removed for now (also code was a bit unclean, could lead to segfault if
   205     // reload() is called before all members are initialized - because currently
   214     // reload() is called before all members are initialized - because currently
   206     // they are initialized in the getter methods rather than the constructor)
   215     // they are initialized in the getter methods rather than the constructor)