Use QList's child counting method instead of the server reported count,
authorShantanu Tushar <jhahoneyk@gmail.com>
Sun, 26 Sep 2010 19:46:11 +0000 (01:16 +0530)
committerShantanu Tushar <jhahoneyk@gmail.com>
Sun, 26 Sep 2010 19:46:11 +0000 (01:16 +0530)
commit5b26471fe45293a471c498bf1b4d547fbbe44a06
treeff07d36336a9d1c7bbb667f5a7116f8d613e444a
parent8a1e7740aaede600ad78888084e0584519f7a2bb
Use QList's child counting method instead of the server reported count,
as it is sometimes wrong leading to crashes.
Use for each loop instead of for, due to obvious reasons.
change addComment to uploadComment as addComment felt like an overload, which
it is not. Suggest a better name than uploadComment, if anyone has.
player/models/commentsmodel.cpp
player/models/commentsmodel.h
player/plasmoid/views/commentsview.cpp