Qt: replace nul character with 0 in the log viewer

Fixes cropped content
This commit is contained in:
Megamouse 2022-10-22 21:09:48 +02:00
parent 5b66fe47db
commit 4e426af114
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,9 @@ void log_viewer::show_log()
m_gui_settings->SetValue(gui::fd_log_viewer, m_path_last);
QTextStream stream(&file);
m_log_text->setPlainText(stream.readAll());
QString text = stream.readAll();
text.replace('\0', '0');
m_log_text->setPlainText(text);
file.close();
}
else