profile wasn't saved on first start

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3133 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-06-14 13:32:13 +00:00
parent 4dc30963cb
commit 927f8639b7
4 changed files with 35 additions and 10 deletions

View file

@ -74,13 +74,19 @@ RshareSettings *Settings = NULL;
/*static*/ void RshareSettings::Create ()
{
if (Settings && Settings->m_bValid == false) {
// recreate with correct path
delete (Settings);
Settings = NULL;
}
if (Settings == NULL) {
Settings = new RshareSettings ();
}
}
/** Default Constructor */
RshareSettings::RshareSettings() {
RshareSettings::RshareSettings()
{
initSettings();
}