Commit 780ed6a7 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed CourseManager initialization lifecycle

parent 06a1fdf8
......@@ -41,7 +41,7 @@ Plugin::Plugin()
rescentMenu=new QMenu(trUtf8("Недавние тетради/курсы..."));
// m_actionCourseLoadRescent->setMenu(rescentMenu);
MW=new MainWindowTask();
MW->setup(myResourcesDir(), mySettings());
mainWindow_=MW;
......@@ -632,6 +632,7 @@ QString Plugin::initialize(const QStringList &configurationArguments,
}
return "";
}
MW->setup(myResourcesDir(), mySettings());
QList<QAction*> actions;
actions=MW->getActions();
for(int i=0;i<actions.count();i++)
......
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