DiffPresetDialog: Show "Undef category/group" just in Debug mode

This commit is contained in:
YuSanka 2024-04-03 10:37:31 +02:00
parent 0d29ac7d68
commit fa7d20a44d

View File

@ -1854,8 +1854,10 @@ void DiffPresetDialog::update_tree()
Search::Option option = searcher.get_option(opt_key, get_full_label(opt_key, left_config), type); Search::Option option = searcher.get_option(opt_key, get_full_label(opt_key, left_config), type);
if (option.opt_key() != opt_key) { if (option.opt_key() != opt_key) {
#ifdef _DEBUG
// temporary solution, just for testing // temporary solution, just for testing
m_tree->Append(opt_key, type, _L("Undef category"), _L("Undef group"), opt_key, left_val, right_val, "", "question"); m_tree->Append(opt_key, type, _L("Undef category"), _L("Undef group"), opt_key, left_val, right_val, "", "question");
#endif
// When founded option isn't the correct one. // When founded option isn't the correct one.
// It can be for dirty_options: "default_print_profile", "printer_model", "printer_settings_id", // It can be for dirty_options: "default_print_profile", "printer_model", "printer_settings_id",
// because of they don't exist in searcher // because of they don't exist in searcher