mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 22:52:54 -04:00
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:
parent
4dc30963cb
commit
927f8639b7
4 changed files with 35 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue