From 2f8c12ff1c8e23a57c14ac20bf9d9c621b6b3ce1 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 6 Jan 2018 16:11:46 +0100 Subject: [PATCH] WebTab: Fix tab with empty url but not empty history treating as invalid Fixes possibility to lose tabs on session restore when closing window right after it started to restore session (right after it was opened). --- src/lib/webtab/webtab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/webtab/webtab.cpp b/src/lib/webtab/webtab.cpp index 5c5556327..41f353b13 100644 --- a/src/lib/webtab/webtab.cpp +++ b/src/lib/webtab/webtab.cpp @@ -56,7 +56,7 @@ WebTab::SavedTab::SavedTab(WebTab* webTab) bool WebTab::SavedTab::isValid() const { - return !url.isEmpty(); + return !url.isEmpty() || !history.isEmpty(); } void WebTab::SavedTab::clear()