Apparently removeLast() only comes in Qt 6.5+

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li 2025-04-15 06:16:47 +08:00
parent 5634723ecd
commit de66fe4eda
No known key found for this signature in database

View File

@ -202,7 +202,7 @@ void OtherLogsPage::on_btnReload_clicked()
// Try to determine a level for each line
if (content.back() == '\n')
content = content.removeLast();
content = content.remove(content.size() - 1, 1);
ui->text->clear();
m_model->clear();
for (auto& line : content.split('\n')) {