fixed load and save of window state again, i used the wrong class, now it's ok

please delete following files if exist
- MainWindow
- MessengerWindow
- BandwidthGraph
- HelpBrowser

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2926 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-05-17 10:48:59 +00:00
parent 913789b972
commit 84a48d2c80

View File

@ -29,7 +29,6 @@
#include <QDesktopWidget>
#include <rshare.h>
#include "rwindow.h"
#include "gui/settings/rsharesettings.h"
/** Default constructor. */
@ -97,7 +96,7 @@ RWindow::restoreWindowState()
QVariant
RWindow::getSetting(QString setting, QVariant defaultValue)
{
RshareSettings settings(_name.toStdString());
RSettings settings(_name);
return settings.value(setting, defaultValue);
}
@ -105,7 +104,7 @@ RWindow::getSetting(QString setting, QVariant defaultValue)
void
RWindow::saveSetting(QString prop, QVariant value)
{
RshareSettings settings(_name.toStdString());
RSettings settings(_name);
settings.setValue(prop, value);
}