From 9abf7a9690163737d3e70b3b52d814135858d0d5 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 29 Sep 2018 14:56:39 +0200 Subject: ProfileManager: move initial profile loading to ProfileManager --- src/subwindow/subwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/subwindow/subwindow.cpp') diff --git a/src/subwindow/subwindow.cpp b/src/subwindow/subwindow.cpp index 7dc1cdf..44ac1b1 100644 --- a/src/subwindow/subwindow.cpp +++ b/src/subwindow/subwindow.cpp @@ -50,6 +50,7 @@ SubWindow::SubWindow(const std::unique_ptr &config, QWidget *pare Browser *browser = qobject_cast(qApp); Q_CHECK_PTR(browser); + auto *profileManager = dynamic_cast(qApp)->getProfileManager(); loadProfile_menu->addActions(profileManager->createProfileMenu([this, profileName_action](WebProfile *profile) { this->setProfile(profile); profileName_action->setText(tr("Profile: %1").arg(profile->name())); -- cgit v1.2.1