mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -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
|
@ -104,8 +104,6 @@ SearchDialog::SearchDialog(QWidget *parent)
|
|||
initialiseFileTypeMappings();
|
||||
}
|
||||
|
||||
RshareSettings rsharesettings;
|
||||
|
||||
connect(ui.toggleAdvancedSearchBtn, SIGNAL(clicked()), this, SLOT(showAdvSearchDialog()));
|
||||
|
||||
connect( ui.searchResultWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( searchtableWidgetCostumPopupMenu( QPoint ) ) );
|
||||
|
@ -447,9 +445,8 @@ void SearchDialog::hideEvent(QHideEvent * event)
|
|||
void SearchDialog::toggleAdvancedSearchDialog(bool toggled)
|
||||
{
|
||||
// record the users preference for future reference
|
||||
RshareSettings rsharesettings;
|
||||
QString key (UI_PREF_ADVANCED_SEARCH);
|
||||
rsharesettings.setValue(key, QVariant(toggled));
|
||||
Settings->setValue(key, QVariant(toggled));
|
||||
|
||||
showAdvSearchDialog(toggled);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue