MessengerWindow::insertPeers:

- memory leak - return of takeTopLevelItem and takeChild are not deleted
- possible crash, when child has disappeared

fixed load and save of window state, i forgot to give the name of the window to the settings class

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2916 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-05-16 11:10:13 +00:00
parent 93cd5e67f8
commit 48d2007f81
2 changed files with 15 additions and 11 deletions

View file

@ -97,7 +97,7 @@ RWindow::restoreWindowState()
QVariant
RWindow::getSetting(QString setting, QVariant defaultValue)
{
RshareSettings settings;
RshareSettings settings(_name.toStdString());
return settings.value(setting, defaultValue);
}
@ -105,7 +105,7 @@ RWindow::getSetting(QString setting, QVariant defaultValue)
void
RWindow::saveSetting(QString prop, QVariant value)
{
RshareSettings settings;
RshareSettings settings(_name.toStdString());
settings.setValue(prop, value);
}