mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 21:12:31 -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
|
@ -108,10 +108,9 @@ NotifyPage::save(QString &errmsg)
|
|||
if (ui.chat_Focus->isChecked())
|
||||
chatflags |= RS_CHAT_FOCUS;
|
||||
|
||||
RshareSettings settings;
|
||||
settings.setNotifyFlags(notifyflags);
|
||||
settings.setNewsFeedFlags(newsflags);
|
||||
settings.setChatFlags(chatflags);
|
||||
Settings->setNotifyFlags(notifyflags);
|
||||
Settings->setNewsFeedFlags(newsflags);
|
||||
Settings->setChatFlags(chatflags);
|
||||
|
||||
load();
|
||||
return true;
|
||||
|
@ -122,11 +121,9 @@ NotifyPage::save(QString &errmsg)
|
|||
void NotifyPage::load()
|
||||
{
|
||||
/* extract from rsNotify the flags */
|
||||
RshareSettings settings;
|
||||
|
||||
uint notifyflags = settings.getNotifyFlags();
|
||||
uint newsflags = settings.getNewsFeedFlags();
|
||||
uint chatflags = settings.getChatFlags();
|
||||
uint notifyflags = Settings->getNotifyFlags();
|
||||
uint newsflags = Settings->getNewsFeedFlags();
|
||||
uint chatflags = Settings->getChatFlags();
|
||||
|
||||
ui.popup_Connect->setChecked(notifyflags & RS_POPUP_CONNECT);
|
||||
ui.popup_NewMsg->setChecked(notifyflags & RS_POPUP_MSG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue