mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Verify JSON documents being saved don't contain byte arrays
* Newer Qt versions will base64 the byte arrays even if we've already base64'd them so they're safe. To prevent this we explicitly convert to QString afterwards.
This commit is contained in:
@@ -2952,7 +2952,7 @@ QVariantMap MainWindow::saveState()
|
||||
{
|
||||
QVariantMap state = ui->toolWindowManager->saveState();
|
||||
|
||||
state[lit("mainWindowGeometry")] = saveGeometry().toBase64();
|
||||
state[lit("mainWindowGeometry")] = QString::fromLatin1(saveGeometry().toBase64());
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user