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/mainwindow/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mainwindow') diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index e1b8fd8..8a33e23 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -390,6 +390,7 @@ void MainWindow::updatePageLoadProfileMenu() if(currentView == nullptr) return; + auto *profileManager = dynamic_cast(qApp)->getProfileManager(); pageLoadProfileMenu->addActions(profileManager->createProfileMenu([this](WebProfile *profile) { this->currentView->setProfile(profile); }, -- cgit v1.2.1