Always create a default profile
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 6 Aug 2010 10:21:20 +0000 (12:21 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 6 Aug 2010 10:21:20 +0000 (12:21 +0200)
Even if there are other existing profiles, always create a default one.

src/profile.c

index 830db89..a74d870 100644 (file)
@@ -481,7 +481,7 @@ static int profile_init(void)
                g_dir_close(dir);
        }
 
-       if (g_hash_table_size(profile_hash) == 0)
+       if (default_profile == NULL)
                create_profile(PROFILE_DEFAULT_IDENT, "Default", NULL);
 
        profiles_changed();