diff options
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) |