Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <lex.borisov@gmail.com>2019-10-21 16:04:08 +0300
committerGitHub <noreply@github.com>2019-10-21 16:04:08 +0300
commitbefc1cb210ea48bebcbb129268db8fa1cac1846a (patch)
treea2d2c0e17b52b5a97f131c770f037c55f474384a
parentc6b430fd8029a48f8242a4e076a253fd3f9d4e44 (diff)
parentaefa5d7b74c186c38284b3bc300b8bcc1f66d846 (diff)
Merge pull request #70 from aygulsalahli/fix-repeated-property
When a property is repeated with multiple values take the last one.
-rw-r--r--source/modest/finder/thread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/modest/finder/thread.c b/source/modest/finder/thread.c
index a6f5d86..883e5f2 100644
--- a/source/modest/finder/thread.c
+++ b/source/modest/finder/thread.c
@@ -334,8 +334,11 @@ bool modest_finder_thread_spec_is_up(modest_style_raw_specificity_t* spec_f, mod
if(spec_f->c > spec_t->c)
return true;
+ else if(spec_f->c < spec_t->c)
+ return false;
- return false;
+ /* when a property is repeated with multiple values take the last one*/
+ return true;
}
void modest_finder_thread_declaratin_append(modest_finder_thread_found_context_t* found_context, bool is_low_priority,