1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

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

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