Commit ca48b2f7 authored by hjk's avatar hjk Committed by con

debugger: fix modules window context menu

(cherry picked from commit e53fc866)
parent 191282ef
......@@ -107,10 +107,6 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev)
QMenu menu;
QAction *act0 = new QAction(tr("Update module list"), &menu);
QAction *act1 = new QAction(tr("Adjust column widths to contents"), &menu);
QAction *act2 = new QAction(tr("Always adjust column widths to contents"), &menu);
act2->setCheckable(true);
act2->setChecked(m_alwaysResizeColumnsToContents);
QAction *act3 = new QAction(tr("Show source files for module \"%1\"").arg(name),
&menu);
QAction *act4 = new QAction(tr("Load symbols for all modules"), &menu);
......@@ -140,6 +136,8 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev)
menu.addAction(tr("Adjust column widths to contents"));
QAction *actAlwaysAdjustColumnWidth =
menu.addAction(tr("Always adjust column widths to contents"));
actAlwaysAdjustColumnWidth->setCheckable(true);
actAlwaysAdjustColumnWidth->setChecked(m_alwaysResizeColumnsToContents);
menu.addSeparator();
menu.addAction(theDebuggerAction(SettingsDialog));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment