1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52:12 +01:00

RestoreManager: Fix restoring nested crashed sessions

This commit is contained in:
David Rosca 2018-03-17 17:56:35 +01:00
parent dc131ddfee
commit 48d87d7a0e
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -99,9 +99,9 @@ RestoreData RestoreManager::restoreData() const
void RestoreManager::clearRestoreData() void RestoreManager::clearRestoreData()
{ {
QByteArray crashedSession = m_data.crashedSession;
m_data.clear(); m_data.clear();
QDataStream stream(&crashedSession, QIODevice::ReadOnly);
QDataStream stream(&m_data.crashedSession, QIODevice::ReadOnly);
stream >> m_data; stream >> m_data;
} }