mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
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:
parent
93cd5e67f8
commit
48d2007f81
2 changed files with 15 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue