diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-17 13:25:38 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-17 13:25:38 +0100 |
commit | 7eb573a67ea883228ff7905190ff46c0f29593b1 (patch) | |
tree | dcad511c1c844419b107f127ee07203e379b62ff /src/mainwindow.cpp | |
parent | Fixed release builds defining QT_DEBUG (diff) | |
download | smolbote-7eb573a67ea883228ff7905190ff46c0f29593b1.tar.xz |
ProfileView dialog
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 297b571..16e0ed0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -218,6 +218,13 @@ void MainWindow::setProfile(WebEngineProfile *profile) { Q_CHECK_PTR(profile); tabBar->setProfile(profile); + menuBar->setProfileName(profile->name()); +} + +WebEngineProfile *MainWindow::profile() +{ + Q_CHECK_PTR(tabBar->profile()); + return tabBar->profile(); } void MainWindow::setBookmarksWidget(std::shared_ptr<BookmarksWidget> &widget) |