Lubomir I. Ivanov cf9748278f Planner: fix potential assert in clear()
If rowCount() is 0 we get an assert:
ASSERT: "last >= first" in file kernel/qabstractitemmodel.cpp...

To solve that we wrap the beginRemoveRows() call in a bnrach:
if (rowCount() > 0) {
...

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-12-10 05:22:01 +01:00
..
2013-09-02 05:57:08 -03:00
2013-11-29 12:11:12 -08:00
2013-12-09 22:47:28 +01:00
2013-12-04 15:49:55 -08:00
2013-10-15 04:37:31 -07:00
2013-12-09 22:47:28 +01:00
2013-11-30 12:01:32 -08:00
2013-11-30 09:24:59 -08:00
2013-11-30 09:24:59 -08:00