mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Guard QTimer::singleShot
This commit is contained in:
committed by
Roland Winklmeier
parent
3ecb7b1f94
commit
3f4cb7529c
@@ -32,7 +32,13 @@ namespace BlackGui
|
||||
this->setPlaceholderText(".dot commands");
|
||||
}
|
||||
|
||||
QTimer::singleShot(5000, &m_dsCommandTooltip, &CDigestSignal::inputSignal);
|
||||
const QPointer<CCommandInput> myself(this);
|
||||
QTimer::singleShot(5000, this, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
m_dsCommandTooltip.inputSignal();
|
||||
});
|
||||
|
||||
if (sGui && sGui->supportsContexts())
|
||||
{
|
||||
if (sGui->getIContextSimulator())
|
||||
|
||||
Reference in New Issue
Block a user