From 26822841f51dfccd13c5a1d72a6ced7de9e26633 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 13 Jul 2016 11:55:00 -0400 Subject: [PATCH] 2016-07-13 Fred Gleason * Made the 'Allow Cart Dragging' checkbox setting persistent across RDLibrary sessions in 'rdlibrary/rdlibrary.cpp'. --- ChangeLog | 3 +++ rdlibrary/rdlibrary.cpp | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d051ae5f..bbb76b0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15294,3 +15294,6 @@ 2016-07-13 Fred Gleason * Fixed a bug in the 'RDCart::GetXmlValue()' method that caused XML field values not to be unescaped correctly. +2016-07-13 Fred Gleason + * Made the 'Allow Cart Dragging' checkbox setting persistent across + RDLibrary sessions in 'rdlibrary/rdlibrary.cpp'. diff --git a/rdlibrary/rdlibrary.cpp b/rdlibrary/rdlibrary.cpp index e7f9c6b5..fdccff9e 100644 --- a/rdlibrary/rdlibrary.cpp +++ b/rdlibrary/rdlibrary.cpp @@ -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 {