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:
baldurk
2020-08-28 11:59:16 +01:00
parent 02b7c1bfe5
commit 0c1b304917
2 changed files with 41 additions and 3 deletions
+1 -1
View File
@@ -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;
}