diff options
| author | David Skoland <davidskoland@gmail.com> | 2019-01-02 22:28:16 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2019-01-02 22:28:16 +0100 |
| commit | 0788b162f1bb3dbfef66fbe9d341bc3a857a90e1 (patch) | |
| tree | 353579989dcc50ef98ae56733e597f08d080b141 | |
| parent | ec1057b5d7e1d39963275bc2cbd79a53cf6f3f5c (diff) | |
fixed a crash condition where blip rate is less than 1
| -rw-r--r-- | src/text_file_functions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index fcb8df2c..f35690af 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; } |
