GDesktopAppInfo: fix default app logic
authorRyan Lortie <desrt@desrt.ca>
Thu, 4 Sep 2014 17:17:27 +0000 (13:17 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 4 Sep 2014 18:48:05 +0000 (14:48 -0400)
commit08efbda7333cf1d349719e699bbcbb63b8ef09e4
tree749242b6532cab4f5781209ee81bbc1aba5588f0
parente763d93456881cb45a28a4c5c566d53128633aaa
GDesktopAppInfo: fix default app logic

We use "tweaks" structures to track how a particular directory impacts
the list of added, removed and default applications.  We maintain this
set of tweaks for each directory, in a hash table, keyed by unaliased
mime type name, in order to facilitate fast lookups.

A typo in the logic for creating and maintaining the uniqueness of these
structures was causing the default app to be selected incorrectly from
time to time.  Fix that.
gio/gdesktopappinfo.c