# HG changeset patch # User Chris Cannam # Date 1407929685 -3600 # Node ID 66aa86070aa42de85ab2d8c88aeae872d6ec28e8 # Parent 34f43480f7cadeac5ed2d29f846215ac6ab2f35b Debug out diff -r 34f43480f7ca -r 66aa86070aa4 main/MainWindow.cpp --- a/main/MainWindow.cpp Wed Aug 13 11:49:45 2014 +0100 +++ b/main/MainWindow.cpp Wed Aug 13 12:34:45 2014 +0100 @@ -1029,6 +1029,7 @@ { if (m_paneMenu) { m_paneActions.clear(); + cerr << "clearing pane menu " << m_paneMenu << endl; m_paneMenu->clear(); } else { m_paneMenu = menuBar()->addMenu(tr("&Pane")); @@ -1264,6 +1265,7 @@ } else { if (!submenu) { + cerr << "adding submenu of name " << mainText << " to menu " << menu << ", " << menu->title() << endl; submenu = menu->addMenu(mainText); submenu->setTearOffEnabled(true); } else if (isDefault) { @@ -1438,6 +1440,20 @@ m_keyReference->registerShortcut(raction); // rename after delete, so delete layer goes next to delete pane m_keyReference->registerShortcut(eaction); // edit also after delete + cerr << "pane menu contains:" << endl; + foreach (QAction *a, m_paneMenu->actions()) { + if (a->isSeparator()) { + cerr << "-----" << endl; + continue; + } + cerr << a->text() << " " << a->shortcut().toString() << endl; + if (a->menu()) { + foreach (QAction *aa, a->menu()->actions()) { + cerr << " " << aa->text() << " " << aa->shortcut().toString() << endl; + } + } + } + finaliseMenus(); }