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:
parent
0f2e153709
commit
5ab952e68f
|
@ -145,7 +145,7 @@ QDataStream &operator<<(QDataStream &stream, const BrowserWindow::SavedWindow &w
|
|||
stream << window.windowGeometry;
|
||||
stream << window.virtualDesktop;
|
||||
stream << window.currentTab;
|
||||
stream << window.tabs.count();
|
||||
stream << static_cast<int>(window.tabs.count());
|
||||
|
||||
for (int i = 0; i < window.tabs.count(); ++i) {
|
||||
stream << window.tabs.at(i);
|
||||
|
|
|
@ -43,7 +43,7 @@ void RestoreData::clear()
|
|||
|
||||
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)) {
|
||||
stream << window;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user