From 26960cf099960e8a832bffab09cf41602b27de42 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 29 Mar 2020 20:55:25 -0600 Subject: [PATCH] autofill regex --- GUI/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index cce191e..04d719f 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -333,6 +333,7 @@ namespace return; } + filter.setPattern(cjkCheckBox.isChecked() ? "[\\x{3000}-\\x{a000}]{4,}" : "[\\x{0020}-\\x{1000}]{4,}"); if (customSettings) { QDialog dialog(This, Qt::WindowCloseButtonHint); @@ -388,7 +389,6 @@ namespace else { sp.length = 0; // use default - filter.setPattern(cjkCheckBox.isChecked() ? "[\\x{3000}-\\x{a000}]{4,}" : "[\\x{0020}-\\x{1000}]{4,}"); } filter.optimize();