mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -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 <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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user