fix #1802 (newly created graph docks have no title) (#1815)

This commit is contained in:
Teddy Heinen 2019-10-04 14:57:30 -05:00 committed by karliss
parent 38cdb90dc4
commit de8aef47f7

View File

@ -26,6 +26,9 @@ GraphWidget::GraphWidget(MainWindow *main, QAction *action) :
graphView = new DisassemblerGraphView(layoutWidget, seekable, main); graphView = new DisassemblerGraphView(layoutWidget, seekable, main);
layout->addWidget(graphView); layout->addWidget(graphView);
// Title needs to get set after graphView is defined
updateWindowTitle();
// getting the name of the class is implementation defined, and cannot be // getting the name of the class is implementation defined, and cannot be
// used reliably across different compilers. // used reliably across different compilers.
//QShortcut *toggle_shortcut = new QShortcut(widgetShortcuts[typeid(this).name()], main); //QShortcut *toggle_shortcut = new QShortcut(widgetShortcuts[typeid(this).name()], main);