diff --git a/Core/PluginLoader.cc b/Core/PluginLoader.cc index 445c87dbcdfb70313e08456f0972507cf7d30d1f..77831ade45bc673b77a9925b53c418fd604d5e9d 100644 --- a/Core/PluginLoader.cc +++ b/Core/PluginLoader.cc @@ -1109,14 +1109,14 @@ void Core::loadPlugin(QString filename, bool silent, QObject* _plugin){ // Stage two: Core restore done, plugins should restore if ( checkSignal( plugin , "restore(int,int)" ) ) { - connect(this , SIGNAL(restore(int,int)) , - plugin , SIGNAL( restore(int,int) ),Qt::DirectConnection); + connect(plugin , SIGNAL(restore(int,int)) , + this , SIGNAL( restore(int,int) ),Qt::DirectConnection); } // Stage three: Restore complete if ( checkSignal( plugin , "restored(int,int)" ) ) { - connect(this , SIGNAL(restored(int,int)) , - plugin , SIGNAL( restored(int,int) ),Qt::DirectConnection); + connect(plugin , SIGNAL(restored(int,int)) , + this , SIGNAL( restored(int,int) ),Qt::DirectConnection); } //====================================================================================