Skip to content
Snippets Groups Projects
Commit 5c39536d authored by Cedric Seehausen's avatar Cedric Seehausen
Browse files

Forced init method of ScenarioManagerWidgetController to happen in Qt main thread

parent e73fd524
No related branches found
No related tags found
1 merge request!7Integrated ScenarioManager plugin
......@@ -74,6 +74,11 @@ void ScenarioManagerWidgetController::saveSettings(QSettings* settings)
void ScenarioManagerWidgetController::onInitComponent()
{
QMetaObject::invokeMethod(this, "init", Qt::QueuedConnection);
}
void ScenarioManagerWidgetController::init()
{
detailedApplicationController.setDetailedApplicationView(widget.detailedApplicationView);
......@@ -187,7 +192,6 @@ void ScenarioManagerWidgetController::onInitComponent()
reparsePackages();
}
void ScenarioManagerWidgetController::onConnectComponent()
{
......
......@@ -61,7 +61,7 @@ namespace armarx
*/
class ARMARXCOMPONENT_IMPORT_EXPORT
ScenarioManagerWidgetController:
public armarx::ArmarXComponentWidgetController
public armarx::ArmarXComponentWidgetController
{
Q_OBJECT
......@@ -115,6 +115,9 @@ namespace armarx
signals:
/* QT signal declarations */
private slots:
//used to force Qt main thread to init this plugin
void init();
private:
/**
* Widget Form
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment