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 committed 2020-08-28 19:06:05 +01:00
1 parent 02b7c1bfe5
commit 0c1b304917
2 files changed
+41 -3

No files matched your search

+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;
}