2016-07-13 Fred Gleason <fredg@paravelsystems.com>

* Made the 'Allow Cart Dragging' checkbox setting persistent across
	RDLibrary sessions in 'rdlibrary/rdlibrary.cpp'.
This commit is contained in:
Fred Gleason 2016-07-13 11:55:00 -04:00
parent 6c31c9e1d4
commit 26822841f5
2 changed files with 9 additions and 5 deletions

View File

@ -15294,3 +15294,6 @@
2016-07-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'RDCart::GetXmlValue()' method that caused
XML field values not to be unescaped correctly.
2016-07-13 Fred Gleason <fredg@paravelsystems.com>
* Made the 'Allow Cart Dragging' checkbox setting persistent across
RDLibrary sessions in 'rdlibrary/rdlibrary.cpp'.

View File

@ -239,10 +239,9 @@ MainWidget::MainWidget(QWidget *parent)
//
// Filter
//
lib_filter_edit=new QLineEdit(this,"filter_edit");
lib_filter_edit=new QLineEdit(this);
lib_filter_edit->setFont(default_font);
lib_filter_label=new QLabel(lib_filter_edit,tr("Filter:"),
this,"filter_label");
lib_filter_label=new QLabel(lib_filter_edit,tr("Filter:"),this);
lib_filter_label->setFont(button_font);
lib_filter_label->setAlignment(AlignVCenter|AlignRight);
connect(lib_filter_edit,SIGNAL(textChanged(const QString &)),
@ -1418,6 +1417,8 @@ void MainWidget::LoadGeometry()
profile->intValue("RDLibrary","Height",sizeHint().height()));
lib_shownotes_box->
setChecked(profile->boolValue("RDLibrary","ShowNoteBubbles",true));
lib_allowdrag_box->
setChecked(profile->boolValue("RDLibrary","AllowCartDragging",false));
delete profile;
}
@ -1443,8 +1444,8 @@ void MainWidget::SaveGeometry()
else {
fprintf(file,"No\n");
}
fprintf(file,"LimitMatches=");
if(lib_showmatches_box->isChecked()) {
fprintf(file,"AllowCartDragging=");
if(lib_allowdrag_box->isChecked()) {
fprintf(file,"Yes\n");
}
else {