Disable automatically enabled toolbar on Mac

Qt automatically adds a "Menu->View->Show Tab Bar" button, this
change disables that as we don't have a tool bar or tab bar.
This commit is contained in:
Bill Somerville 2019-06-07 17:21:57 +01:00
parent b3d6f5d22e
commit 067692cd1e
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -413,6 +413,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
m_manual {&m_network_manager} m_manual {&m_network_manager}
{ {
ui->setupUi(this); ui->setupUi(this);
setUnifiedTitleAndToolBarOnMac (true);
createStatusBar(); createStatusBar();
add_child_to_event_filter (this); add_child_to_event_filter (this);
ui->dxGridEntry->setValidator (new MaidenheadLocatorValidator {this}); ui->dxGridEntry->setValidator (new MaidenheadLocatorValidator {this});