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

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).
This commit is contained in:
David Rosca 2018-01-06 16:11:46 +01:00
parent a45dbdc883
commit 2f8c12ff1c

View File

@ -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()