Another fix for "dialog closing closes swift",

see https://discordapp.com/channels/539048679160676382/567139633964646411/620776182027386880

The signal for the navigator dialog closed
is not send or received in some cases, not clear why.

Using a reference directly to the main window as workaround.
This commit is contained in:
Klaus Basan
2019-09-12 11:22:26 +02:00
committed by Mat Sutcliffe
parent af1b933e5c
commit 4fc151f4cb
3 changed files with 24 additions and 4 deletions

View File

@@ -228,6 +228,7 @@ void SwiftGuiStd::initGuiSignals()
connect(ui->menu_ModelBrowser, &QAction::triggered, this, &SwiftGuiStd::startModelBrowser, Qt::QueuedConnection);
connect(m_navigator.data(), &CNavigatorDialog::navigatorClosed, this, &SwiftGuiStd::onNavigatorClosed, Qt::QueuedConnection);
m_navigator->setMainWindow(this);
// settings (GUI component), styles
connect(ui->comp_MainInfoArea->getSettingsComponent(), &CSettingsComponent::changedWindowsOpacity, this, &SwiftGuiStd::onChangedWindowOpacity);