Commit 89c15b68 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Merge remote-tracking branch 'origin/release/21.04'

parents 92aea803 8e595d9e
Pipeline #93760 skipped
......@@ -54,7 +54,7 @@ public:
virtual QVector<std::shared_ptr<ILanguage>> languages() const = 0;
Q_SIGNALS:
void courseAboutToBeAdded(std::shared_ptr<ICourse>, int);
void courseAboutToBeAdded(std::shared_ptr<ICourse>, int index);
void courseAdded();
void courseAboutToBeRemoved(int);
void courseRemoved();
......
......@@ -122,7 +122,7 @@ bool ResourceRepository::loadCourse(const QString &resourceFile)
return false;
}
emit courseAboutToBeAdded(resource, m_courses.count() - 1);
emit courseAboutToBeAdded(resource, m_courses.count());
m_courses.append(resource);
emit courseAdded();
m_loadedCourses.append(resourceFile);
......
Supports Markdown
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