From 0148b7aaffb83c4706af446b2f3e9ccf546aeb40 Mon Sep 17 00:00:00 2001 From: srazi Date: Sat, 8 Apr 2017 13:36:46 +0430 Subject: [PATCH] RestoreManager: Don't append WindowData with empty tabsState to restore data --- src/lib/session/restoremanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/session/restoremanager.cpp b/src/lib/session/restoremanager.cpp index 9555fd89e..90ee0a26e 100644 --- a/src/lib/session/restoremanager.cpp +++ b/src/lib/session/restoremanager.cpp @@ -91,6 +91,10 @@ void RestoreManager::createFromFile(const QString &file, QVector &da tabStream >> tab; tabs.append(tab); } + + if (tabs.count() == 0) + continue; + wd.tabsState = tabs; int currentTab;