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

@ -61,7 +61,9 @@ int main(int argc, char *argv[])
RsInit::InitRsConfig();
bool okStart = RsInit::InitRetroShare(argc, argv);
/* create global settings object */
/* create global settings object
path maybe wrong, when no profile exist
in this case it can be use only for default values */
RshareSettings::Create ();
/*
@ -132,6 +134,9 @@ int main(int argc, char *argv[])
rsicontrol->StartupRetroShare();
/* recreate global settings object, now with correct path */
RshareSettings::Create ();
MainWindow *w = MainWindow::Create ();
// I'm using a signal to transfer the hashing info to the mainwindow, because Qt schedules signals properly to