Commit 253cef0d authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Do not register favorite languages if no profile.

BUG: 334238
FIXED-IN: 4.13.1
parent 56dbba16
......@@ -235,6 +235,13 @@ void MainWindow::downloadNewStuff()
//update available courses
m_resourceManager->loadCourseResources();
if (!m_profileManager->activeProfile()) {
kWarning() << "Not registering course language for favorite languages:"
<< " no active learner profile set";
delete dialog;
return;
}
// add languages of new courses to favorite languages
foreach (const KNS3::Entry &entry, dialog->changedEntries()) {
foreach (const QString &path, entry.installedFiles()) {
......
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