mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
reworked settings
now there is only one global object for loading and saving settings RshareSettings *Settings; the class RSettings can be used too, but it is not prefered, because the default settings has no affect git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2964 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e68e6b54ef
commit
6baf56285b
39 changed files with 336 additions and 390 deletions
|
@ -804,8 +804,7 @@ void MessengerWindow::show()
|
|||
|
||||
void MessengerWindow::closeEvent (QCloseEvent * event)
|
||||
{
|
||||
//RshareSettings config;
|
||||
//config.saveWidgetInformation(this);
|
||||
//Settings->saveWidgetInformation(this);
|
||||
|
||||
hide();
|
||||
event->ignore();
|
||||
|
@ -913,12 +912,7 @@ void MessengerWindow::loadmystatusmessage()
|
|||
/** Save own status message */
|
||||
void MessengerWindow::savestatusmessage()
|
||||
{
|
||||
RshareSettings settings;
|
||||
settings.beginGroup("Profile");
|
||||
|
||||
settings.setValue("StatusMessage",ui.messagelineEdit->text());
|
||||
|
||||
settings.endGroup();
|
||||
Settings->setValueToGroup("Profile", "StatusMessage",ui.messagelineEdit->text());
|
||||
|
||||
rsMsgs->setCustomStateString(ui.messagelineEdit->text().toStdString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue