diff options
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/mainwindowmenubar.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/widgets/mainwindowmenubar.cpp b/src/widgets/mainwindowmenubar.cpp index c0bea4f..f8275c0 100644 --- a/src/widgets/mainwindowmenubar.cpp +++ b/src/widgets/mainwindowmenubar.cpp @@ -7,14 +7,9 @@ */ #include "mainwindowmenubar.h" -#include "forms/profileview.h" +#include "downloads/downloadswidget.h" #include "mainwindow.h" -#include <QApplication> #include <QInputDialog> -#include <settings/configuration.h> - -#include "browser.h" -#include "downloads/downloadswidget.h" MainWindowMenuBar::MainWindowMenuBar(std::shared_ptr<Configuration> config, MainWindow *parent) : QMenuBar(parent) @@ -69,11 +64,7 @@ MainWindowMenuBar::MainWindowMenuBar(std::shared_ptr<Configuration> config, Main // Profile menu QMenu *profileMenu = addMenu(tr("Profile")); m_profileAction = profileMenu->addAction(tr("Current profile")); - connect(m_profileAction, &QAction::triggered, this, [parent]() { - ProfileView *dlg = new ProfileView(parent->profile(), parent); - dlg->exec(); - delete dlg; - }); + m_profileAction->setEnabled(false); QMenu *loadMenu = profileMenu->addMenu(tr("Load")); loadMenu->setEnabled(false); |