mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-06 23:47:47 +02:00
2022-09-30 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCartFilter' that caused 'RDLibraryModel' to fail to be initialized properly. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
1496e3e17f
commit
02337abb32
@ -23442,3 +23442,6 @@
|
||||
2022-09-30 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Updated various dialogs in rdcatch(1) to use new 'pretty text'
|
||||
styling for cart and cut objects.
|
||||
2022-09-30 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in 'RDCartFilter' that caused 'RDLibraryModel' to
|
||||
fail to be initialized properly.
|
||||
|
@ -624,6 +624,10 @@ QString RDCartFilter::phraseFilter(const QString &phrase, bool incl_cuts)
|
||||
QString RDCartFilter::groupFilter(const QString &group,
|
||||
const QStringList &groups)
|
||||
{
|
||||
if(groups.size()<=1) { // No actual groups included!
|
||||
return QString("(`CART`.`NUMBER`<0) &&"); // Force empty selection
|
||||
}
|
||||
|
||||
QString sql=" (";
|
||||
|
||||
if(group==tr("ALL")) {
|
||||
@ -733,8 +737,7 @@ void RDCartFilter::LoadServiceGroups()
|
||||
|
||||
void RDCartFilter::UpdateModel()
|
||||
{
|
||||
if(isVisible()&&
|
||||
((filterSql()!=d_model_filter_sql)||(cartLimit()!=d_model_cart_limit))) {
|
||||
if((filterSql()!=d_model_filter_sql)||(cartLimit()!=d_model_cart_limit)) {
|
||||
d_model_filter_sql=filterSql();
|
||||
d_model_cart_limit=cartLimit();
|
||||
emit filterChanged(d_model_filter_sql,d_model_cart_limit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user