From fd6f91e7567387be1a15c9ccfa00b8f2b19021d3 Mon Sep 17 00:00:00 2001 From: Twan van Laarhoven Date: Mon, 27 Apr 2020 18:11:06 +0200 Subject: [PATCH] Warning instead of error for incorrect word-lists --- src/gui/value/text.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/value/text.cpp b/src/gui/value/text.cpp index 5033a786..8836f940 100644 --- a/src/gui/value/text.cpp +++ b/src/gui/value/text.cpp @@ -1356,11 +1356,12 @@ void TextValueEditor::findWordLists() { break; } } - if (!word_list) { - throw Error(_ERROR_1_("word list type not found", name)); - } // add to word_lists - word_lists.push_back(make_intrusive(pos, end, word_list)); + if (word_list) { + word_lists.push_back(make_intrusive(pos, end, word_list)); + } else { + queue_message(MESSAGE_WARNING, _ERROR_1_("word list type not found", name)); + } // next pos = str.find(_("