From 0788b162f1bb3dbfef66fbe9d341bc3a857a90e1 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 2 Jan 2019 22:28:16 +0100 Subject: [PATCH] fixed a crash condition where blip rate is less than 1 --- src/text_file_functions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index fcb8df2..f35690a 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -9,6 +9,10 @@ QString AOApplication::read_theme() int AOApplication::read_blip_rate() { int result = configini->value("blip_rate", 1).toInt(); + + if (result < 1) + return 1; + return result; }