gui.airpcap_toolbar_show is the old name for the wireless toolbar, not the old name of the filter toolbar.

svn path=/trunk/; revision=43369
This commit is contained in:
Jeff Morriss 2012-06-19 15:01:25 +00:00
parent 2592e50101
commit afa07ed684
1 changed files with 3 additions and 3 deletions

View File

@ -539,15 +539,15 @@ read_set_recent_pair_static(gchar *key, gchar *value, void *private_data _U_,
else {
recent.main_toolbar_show = FALSE;
}
/* check both the old ane the new keyword */
} else if ((strcmp(key, RECENT_KEY_FILTER_TOOLBAR_SHOW) == 0) || (strcmp(key, "gui.airpcap_toolbar_show") == 0) ) {
} else if (strcmp(key, RECENT_KEY_FILTER_TOOLBAR_SHOW) == 0) {
if (g_ascii_strcasecmp(value, "true") == 0) {
recent.filter_toolbar_show = TRUE;
}
else {
recent.filter_toolbar_show = FALSE;
}
} else if (strcmp(key, RECENT_KEY_WIRELESS_TOOLBAR_SHOW) == 0) {
/* check both the old and the new keyword */
} else if (strcmp(key, RECENT_KEY_WIRELESS_TOOLBAR_SHOW) == 0 || (strcmp(key, "gui.airpcap_toolbar_show") == 0)) {
if (g_ascii_strcasecmp(value, "true") == 0) {
recent.wireless_toolbar_show = TRUE;
}