aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2016-09-07 08:04:15 (GMT)
committerAndreas Cord-Landwehr <cordlandwehr@kde.org>2016-09-07 08:04:15 (GMT)
commit69de35c675054c206b1d6347afc9cbe629811cfc (patch)
tree6c3a287e435cf34838e94b3583d07b50d680007c
parent0b395ebcdaf621fa5b89c0d19b03e343942b9159 (diff)
Only handle actual course changes
Avoid receiving unselected signals when the current lesson is not yet set.
-rw-r--r--src/editor/courseeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor/courseeditor.cpp b/src/editor/courseeditor.cpp
index c2744db..b48135b 100644
--- a/src/editor/courseeditor.cpp
+++ b/src/editor/courseeditor.cpp
@@ -57,7 +57,7 @@ CourseEditor::CourseEditor(QWidget* parent):
connect(m_descriptionTextEdit, SIGNAL(textChanged()), SLOT(onDescriptionChanged()));
connect(m_lessonModel, SIGNAL(lessonChanged(int)), SLOT(selectLesson(int)));
- connect(m_lessonView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(onLessonSelected()));
+ connect(m_lessonView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), SLOT(onLessonSelected()));
connect(m_addLessonButton, SIGNAL(clicked(bool)), SLOT(addLesson()));
connect(m_removeLessonButton, SIGNAL(clicked(bool)), SLOT(removeLesson()));