diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-19 10:14:22 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-19 10:14:22 +0100 |
commit | c1ad1be5924eb28bf6c32b049098fe24bbbb9e4e (patch) | |
tree | 7cc5ab0e600496279ab575a99a6a0b97c0d6f854 /src/browser.h | |
parent | Some bugfixes (diff) | |
download | smolbote-c1ad1be5924eb28bf6c32b049098fe24bbbb9e4e.tar.xz |
Bug fixes
Switching between tabs should work properly now.
Refactored MainWindowTabBar (was WebViewTabBar)
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/browser.h b/src/browser.h index a1557b4..89931e8 100644 --- a/src/browser.h +++ b/src/browser.h @@ -42,7 +42,7 @@ public: void setConfiguration(std::shared_ptr<Configuration> &config); void loadProfiles(); - WebEngineProfile *profile(const QString name); + std::shared_ptr<WebEngineProfile> profile(const QString name); // QStringList profiles(); // std::shared_ptr<BookmarksWidget>& bookmarks(); @@ -60,8 +60,8 @@ private: std::shared_ptr<Configuration> m_config; QVector<MainWindow *> m_windows; - QHash<QString, WebEngineProfile *> m_profiles; - WebEngineProfile* m_defaultProfile; + QHash<QString, std::shared_ptr<WebEngineProfile>> m_profiles; + std::shared_ptr<WebEngineProfile> m_defaultProfile; std::shared_ptr<UrlRequestInterceptor> m_urlRequestInterceptor; std::shared_ptr<BookmarksWidget> m_bookmarksManager; |