mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T592, made dock widget related slots Qt::QueuedConnection
Rational: the widget emits floating but is not yet in full floating state, so with a direct connection we deal a bit too early with the widget. Much more stable (hopefully) using queued connection, then all the handling is done if the window is really a floating window.
This commit is contained in:
committed by
Mat Sutcliffe
parent
423a7dc6f8
commit
9f0daa58ea
@@ -285,14 +285,14 @@ namespace BlackGui
|
||||
|
||||
// save
|
||||
a = new QAction(CIcons::save16(), "Save state", this);
|
||||
c = connect(a, &QAction::triggered, this, &CNavigatorDialog::saveToSettings);
|
||||
c = connect(a, &QAction::triggered, this, &CNavigatorDialog::saveToSettings, Qt::QueuedConnection);
|
||||
Q_ASSERT(c);
|
||||
this->addAction(a);
|
||||
|
||||
// close
|
||||
const QIcon i(CIcons::changeIconBackgroundColor(this->style()->standardIcon(QStyle::SP_TitleBarCloseButton), Qt::white, QSize(16, 16)));
|
||||
a = new QAction(i, "Close", this);
|
||||
c = connect(a, &QAction::triggered, this, &CNavigatorDialog::close);
|
||||
c = connect(a, &QAction::triggered, this, &CNavigatorDialog::close, Qt::QueuedConnection);
|
||||
Q_ASSERT(c);
|
||||
this->addAction(a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user