aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <[email protected]>2014-08-12 18:23:32 +0200
committerAndreas Cord-Landwehr <[email protected]>2014-08-12 18:23:32 +0200
commit0eeb3b4e890b8dc49bef86c1a5085b39c5fbf82d (patch)
tree4478231cd92b27a82c992ccefd41dbb375f61bb6
parenta5bc4f48c733e311714ca978d75fdcf9b9b11769 (diff)
React on language changes.
-rw-r--r--src/qml/CourseSwitcher.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/CourseSwitcher.qml b/src/qml/CourseSwitcher.qml
index 42ba393..941831f 100644
--- a/src/qml/CourseSwitcher.qml
+++ b/src/qml/CourseSwitcher.qml
@@ -36,6 +36,13 @@ Item {
width: 300
height: Math.max(buttonLeft.height, courseView.height)
+ onLanguageChanged: {
+ if (courseModel.course(courseView.currentIndex) != null) {
+ selectedCourse = courseModel.course(courseView.currentIndex)
+ courseSelected(selectedCourse)
+ }
+ }
+
Component.onCompleted: {
courseView.currentIndex = 0
}