https://bugs.kde.org/show_bug.cgi?id=495448
--- Comment #2 from miko <mickael.serg...@free.fr> --- Hello, May I have find the issue, in file ktpproject.cpp, calculated schedule seems not right (always 1), when browsed into m_schedule hash, it starts from 1 but in plan file (for example) it can be 3. Here a example of fix, by browsing all hash value and take the max. diff --git a/src/libs/kernel/kptproject.cpp b/src/libs/kernel/kptproject.cpp index 37d612e8..0938bccf 100644 --- a/src/libs/kernel/kptproject.cpp +++ b/src/libs/kernel/kptproject.cpp @@ -2940,10 +2940,15 @@ void Project::addMainSchedule(MainSchedule *sch, int minId) return; } //debugPlan<<"No of schedules:"<<m_schedules.count(); - long i = std::max(minId, 1); // keep this positive (negative values are special...) - while (m_schedules.contains(i)) { - ++i; + QHashIterator<long, Schedule*> it(m_schedules); + long i = minId; + while (it.hasNext()) { + it.next(); + qInfo() << it.key() << ": " << it.value() ; + i = std::max(it.key(), i); } + ++i; -- You are receiving this mail because: You are watching all bug changes.