summaryrefslogtreecommitdiff
path: root/src/frontend/btopenworkaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/btopenworkaction.cpp')
-rw-r--r--src/frontend/btopenworkaction.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/btopenworkaction.cpp b/src/frontend/btopenworkaction.cpp
index 9f33fc5..50d0d5f 100644
--- a/src/frontend/btopenworkaction.cpp
+++ b/src/frontend/btopenworkaction.cpp
@@ -29,14 +29,8 @@ BtOpenWorkActionMenu::BtOpenWorkActionMenu(const QString &groupingConfigKey,
m_postFilterModel->setSourceModel(m_treeModel);
setModel(m_postFilterModel);
- m_groupingMenu = new BtBookshelfGroupingMenu(false, this);
-
connect(this, SIGNAL(triggered(QModelIndex)),
this, SLOT(slotIndexTriggered(QModelIndex)));
- connect(m_groupingMenu, SIGNAL(signalGroupingOrderChanged(BtBookshelfTreeModel::Grouping)),
- this, SLOT(slotGroupingActionTriggered(BtBookshelfTreeModel::Grouping)));
-
- retranslateUi();
}
BtOpenWorkActionMenu::~BtOpenWorkActionMenu() {
@@ -55,6 +49,12 @@ void BtOpenWorkActionMenu::retranslateUi() {
void BtOpenWorkActionMenu::postBuildMenu() {
addSeparator();
+ m_groupingMenu = new BtBookshelfGroupingMenu(false, this);
+
+ connect(m_groupingMenu, SIGNAL(signalGroupingOrderChanged(BtBookshelfTreeModel::Grouping)),
+ this, SLOT(slotGroupingActionTriggered(BtBookshelfTreeModel::Grouping)));
+
+ retranslateUi();
addMenu(m_groupingMenu);
}