From 84a48d2c80526a8227067cb95c0bc92b9933cbed Mon Sep 17 00:00:00 2001 From: thunder2 Date: Mon, 17 May 2010 10:48:59 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/common/rwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/common/rwindow.cpp b/retroshare-gui/src/gui/common/rwindow.cpp index ae846fa0d..481acc6cc 100644 --- a/retroshare-gui/src/gui/common/rwindow.cpp +++ b/retroshare-gui/src/gui/common/rwindow.cpp @@ -29,7 +29,6 @@ #include #include #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); }