~osomon/webbrowser-app/use-grabToImage

« back to all changes in this revision

Viewing changes to src/app/webbrowser/settings.h

  • Committer: CI Train Bot
  • Author(s): Olivier Tilloy
  • Date: 2015-02-17 20:54:12 UTC
  • mfrom: (897.1.1 setting-no-restore-session)
  • Revision ID: ci-train-bot@canonical.com-20150217205412-246oc8fcngugktsq
Add a config option to allow users to turn off automatic session restore.

To turn off session restore, add the following line to ~/.config/webbrowser-app/settings.conf :

    restoreSession = false Fixes: #1366530
Approved by: Michael Zanetti

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013-2015 Canonical Ltd.
3
3
 *
4
4
 * This file is part of webbrowser-app.
5
5
 *
39
39
    const QUrl& homepage() const;
40
40
    SearchEngine* searchEngine() const;
41
41
    const QString& allowOpenInBackgroundTab() const;
 
42
    bool restoreSession() const;
42
43
 
43
44
private:
44
45
    QUrl m_homepage;
45
46
    SearchEngine* m_searchengine;
46
47
    QString m_allowOpenInBackgroundTab; //"true" for enabled, "default" for form factor dependend behaviour (currently desktop only), anything else disables the option
 
48
    bool m_restoreSession; // true by default
47
49
};
48
50
 
49
51
#endif // __SETTINGS_H__