summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-12-17 12:49:06 +0100
committerPapoteur <papoteur@mageia.org>2018-12-17 12:49:06 +0100
commit47e62ed177aabc4c15b572897f6e473963149fbb (patch)
tree519921d29fae88fad2c9e4a93b5b31ecdb3fbf5a /qml
parenteb4c9712b71aac1de175ac27148b74b6a571f1ee (diff)
downloadmageiawelcome-47e62ed177aabc4c15b572897f6e473963149fbb.tar
mageiawelcome-47e62ed177aabc4c15b572897f6e473963149fbb.tar.gz
mageiawelcome-47e62ed177aabc4c15b572897f6e473963149fbb.tar.bz2
mageiawelcome-47e62ed177aabc4c15b572897f6e473963149fbb.tar.xz
mageiawelcome-47e62ed177aabc4c15b572897f6e473963149fbb.zip
RegExp pattern should be initiate before each request
Diffstat (limited to 'qml')
-rw-r--r--qml/mw-ui.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index d1b0c6a..4368d48 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -531,10 +531,10 @@ It is highly recommended that you update your system regularly. An Update icon w
Component.onCompleted: {
var rowCount = appList.count;
items.remove(0,rowCount);
- var pattern = /featured/g;
for( var i = 0;i < rowCount;i++ )
{
var entry = appList.get(i);
+ var pattern = /featured/g;
entry.installable = installable.installable(entry.name, entry.inst_repo)
if(pattern.test(entry.group) ) {
items.insert(entry, "group");