1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Qt6 - Fix Session restore

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-11-23 17:19:29 +01:00
parent 0f2e153709
commit 5ab952e68f
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ QDataStream &operator<<(QDataStream &stream, const BrowserWindow::SavedWindow &w
stream << window.windowGeometry; stream << window.windowGeometry;
stream << window.virtualDesktop; stream << window.virtualDesktop;
stream << window.currentTab; stream << window.currentTab;
stream << window.tabs.count(); stream << static_cast<int>(window.tabs.count());
for (int i = 0; i < window.tabs.count(); ++i) { for (int i = 0; i < window.tabs.count(); ++i) {
stream << window.tabs.at(i); stream << window.tabs.at(i);

View File

@ -43,7 +43,7 @@ void RestoreData::clear()
QDataStream &operator<<(QDataStream &stream, const RestoreData &data) QDataStream &operator<<(QDataStream &stream, const RestoreData &data)
{ {
stream << data.windows.count(); stream << static_cast<int>(data.windows.count());
for (const BrowserWindow::SavedWindow &window : std::as_const(data.windows)) { for (const BrowserWindow::SavedWindow &window : std::as_const(data.windows)) {
stream << window; stream << window;
} }