mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-16 03:14:31 -05:00
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:
parent
913789b972
commit
84a48d2c80
@ -29,7 +29,6 @@
|
|||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include <rshare.h>
|
#include <rshare.h>
|
||||||
#include "rwindow.h"
|
#include "rwindow.h"
|
||||||
#include "gui/settings/rsharesettings.h"
|
|
||||||
|
|
||||||
|
|
||||||
/** Default constructor. */
|
/** Default constructor. */
|
||||||
@ -97,7 +96,7 @@ RWindow::restoreWindowState()
|
|||||||
QVariant
|
QVariant
|
||||||
RWindow::getSetting(QString setting, QVariant defaultValue)
|
RWindow::getSetting(QString setting, QVariant defaultValue)
|
||||||
{
|
{
|
||||||
RshareSettings settings(_name.toStdString());
|
RSettings settings(_name);
|
||||||
return settings.value(setting, defaultValue);
|
return settings.value(setting, defaultValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +104,7 @@ RWindow::getSetting(QString setting, QVariant defaultValue)
|
|||||||
void
|
void
|
||||||
RWindow::saveSetting(QString prop, QVariant value)
|
RWindow::saveSetting(QString prop, QVariant value)
|
||||||
{
|
{
|
||||||
RshareSettings settings(_name.toStdString());
|
RSettings settings(_name);
|
||||||
settings.setValue(prop, value);
|
settings.setValue(prop, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user