When processing the colorfilters file, keep and disable unknown coloring
rules instead of skipping over and discarding them. This should
hopefully keep people from losing the standard "Checksum Errors" rule
(and it's less rude in general).
Change-Id: I21796c25045d9dbf7612238ce3d27b613f1ec75f
Reviewed-on: https://code.wireshark.org/review/16673
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
g_free(local_err_msg);
prefs.unknown_colorfilters = TRUE;
- skip_end_of_line = TRUE;
- continue;
+ /* skip_end_of_line = TRUE; */
+ disabled = TRUE;
}
fg_color.red = fg_r;
QMessageBox mb;
mb.setText(tr("Your coloring rules file contains unknown rules"));
mb.setInformativeText(tr("Wireshark doesn't recognize one or more of your coloring rules. "
- "Saving will discard them."));
+ "Saving will disable them."));
mb.setStandardButtons(QMessageBox::Save | QMessageBox::Cancel);
mb.setDefaultButton(QMessageBox::Save);