aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/widgets
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-09 12:45:02 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-09 12:45:02 +0200
commit40d1e94d273dad53bd4b40333cd0f165ad9205fe (patch)
tree4f0c76928ea2e9528f3535710366f46e9c29a8ef /src/mainwindow/widgets
parentChange install type for plugins to RUNTIME for win32 (diff)
downloadsmolbote-40d1e94d273dad53bd4b40333cd0f165ad9205fe.tar.xz
Move load profile menu to page menu from tab menu
Diffstat (limited to 'src/mainwindow/widgets')
-rw-r--r--src/mainwindow/widgets/tabwidget.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mainwindow/widgets/tabwidget.cpp b/src/mainwindow/widgets/tabwidget.cpp
index a3fcbdd..4bc57ce 100644
--- a/src/mainwindow/widgets/tabwidget.cpp
+++ b/src/mainwindow/widgets/tabwidget.cpp
@@ -56,24 +56,6 @@ TabWidget::TabWidget(QWidget *parent)
deleteTab(i);
}
});
-
- auto *loadProfile_menu = tabContextMenu->addMenu(tr("Load Profile"));
- {
- auto *browser = qobject_cast<Browser *>(qApp);
- Q_CHECK_PTR(browser);
-
- for(const QString &name : browser->profiles()) {
- auto *profile = browser->profile(name);
- Q_CHECK_PTR(profile);
-
- auto *profileAction = loadProfile_menu->addAction(profile->name());
- connect(profileAction, &QAction::triggered, this, [this, profile]() {
- int index = this->tabBar()->tabAt(mapFromGlobal(tabContextMenu->pos()));
- auto *view = qobject_cast<WebView *>(this->widget(index));
- view->setProfile(profile);
- });
- }
- }
}
TabWidget::~TabWidget()