aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-17 13:25:38 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-17 13:25:38 +0100
commit7eb573a67ea883228ff7905190ff46c0f29593b1 (patch)
treedcad511c1c844419b107f127ee07203e379b62ff /src/mainwindow.cpp
parentFixed release builds defining QT_DEBUG (diff)
downloadsmolbote-7eb573a67ea883228ff7905190ff46c0f29593b1.tar.xz
ProfileView dialog
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
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)