~osomon/webbrowser-app/remove-formFactor

« back to all changes in this revision

Viewing changes to src/app/webbrowser/Browser.qml

  • Committer: Olivier Tilloy
  • Date: 2016-02-10 14:13:02 UTC
  • Revision ID: olivier.tilloy@canonical.com-20160210141302-oeoocmij4d4hifjh
When low on memory, the current public tab might have been unloaded, so reload it when exiting incognito mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    onTabsModelChanged: {
56
56
        if (incognito && privateTabsModelLoader.item) {
57
57
            browser.openUrlInNewTab("", true)
 
58
        } else if (!incognito) {
 
59
            // If the system is low on memory, the current public tab might
 
60
            // have been unloaded while browsing incognito, so reload it.
 
61
            tabsModel.currentTab.load()
58
62
        }
59
63
    }
60
64