Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57832 - /trunk/control-center/src/kcategorizedsortfilterproxymodel.cpp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Wed, 01 Jul 2009 15:29:09 -0000
  • Message-id: <E1MM1kD-000206-BJ@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Wed Jul 1 17:29:09 2009
New Revision: 57832

URL: http://svn.opensuse.org/viewcvs/yast?rev=57832&view=rev
Log:
Make sure no groups are visible if no modules match
the filter

Modified:
trunk/control-center/src/kcategorizedsortfilterproxymodel.cpp

Modified: trunk/control-center/src/kcategorizedsortfilterproxymodel.cpp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/control-center/src/kcategorizedsortfilterproxymodel.cpp?rev=57832&r1=57831&r2=57832&view=diff
==============================================================================
--- trunk/control-center/src/kcategorizedsortfilterproxymodel.cpp (original)
+++ trunk/control-center/src/kcategorizedsortfilterproxymodel.cpp Wed Jul 1
17:29:09 2009
@@ -321,5 +321,10 @@
QString KCategorizedSortFilterProxyModel::matchingGroupFilterRegexp()
{
QStringList slist = d->filterGroups.toList();
- return slist.join("|");
+
+ if ( !slist.isEmpty() )
+ return slist.join("|");
+ else
+ // dumb constant, make sure nothing matches if the list of matching
groups is empty
+ return QString("zzzz");
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages