Skip to content

Commit

Permalink
Refactoring to work on 5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
medo64 committed Jan 8, 2021
1 parent 18d1ff2 commit fa9053f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/phoneticdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ void PhoneticDialog::onChanged() {
QString output;

bool addSpace = false;
foreach (QString ch, text.split("", Qt::SkipEmptyParts)) { //splits on UTF-8 borders correctly
foreach (QString ch, text.split("")) { //splits on UTF-8 borders correctly
if (ch.isEmpty()) { continue; } // SkipEmptyParts not supported on 5.12
if (ch == " ") {
output += "\n";
addSpace = false;
Expand Down

0 comments on commit fa9053f

Please sign in to comment.