Commit 343771ae authored by Martyn Russell's avatar Martyn Russell

tracker-miner-fs: Detect locale changes properly in userguides miner

parent 3b94940d
...@@ -863,19 +863,23 @@ main (gint argc, gchar *argv[]) ...@@ -863,19 +863,23 @@ main (gint argc, gchar *argv[])
if (!do_mtime_checking) if (!do_mtime_checking)
g_debug ("Forcing mtime check in applications miner as locale change was detected"); g_debug ("Forcing mtime check in applications miner as locale change was detected");
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), TRUE); tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), TRUE);
} else {
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), do_mtime_checking);
}
#ifdef HAVE_MAEMO #ifdef HAVE_MAEMO
/* If a locale change was detected, always do mtime checks */
if (tracker_miner_userguides_detect_locale_changed (miner_userguides)) {
if (!do_mtime_checking) if (!do_mtime_checking)
g_debug ("Forcing mtime check in userguides miner as locale change was detected"); g_debug ("Forcing mtime check in userguides miner as locale change was detected");
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), TRUE); tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), TRUE);
#endif /* HAVE_MAEMO */
} else { } else {
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), do_mtime_checking);
#ifdef HAVE_MAEMO
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), do_mtime_checking); tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), do_mtime_checking);
#endif /* HAVE_MAEMO */ #endif /* HAVE_MAEMO */
} }
g_signal_connect (miner_applications, "finished", g_signal_connect (miner_applications, "finished",
G_CALLBACK (miner_finished_cb), G_CALLBACK (miner_finished_cb),
NULL); NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment