Commit aa619e35 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: crash fix



1000ms is too long. It was possible to close the designer
before the 1000ms finished.

100ms make it impossible to close the designer fast enough
to trigger the crash.

Change-Id: Ie12b406298350551551b36cb021b560eeeba7ecf
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 0bcf6930
...@@ -825,7 +825,7 @@ void PropertyEditor::modelAttached(Model *model) ...@@ -825,7 +825,7 @@ void PropertyEditor::modelAttached(Model *model)
resetView(); resetView();
if (!m_setupCompleted) { if (!m_setupCompleted) {
m_singleShotTimer->setSingleShot(true); m_singleShotTimer->setSingleShot(true);
m_singleShotTimer->setInterval(1000); m_singleShotTimer->setInterval(100);
connect(m_singleShotTimer, SIGNAL(timeout()), this, SLOT(setupPanes())); connect(m_singleShotTimer, SIGNAL(timeout()), this, SLOT(setupPanes()));
m_singleShotTimer->start(); m_singleShotTimer->start();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment