mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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:
parent
a45dbdc883
commit
2f8c12ff1c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user