Set invited and left rooms position in model

Invited rooms at the start, left rooms at the end, with the bonus effect
of fixing the roomList height problem.
This commit is contained in:
miruka
2019-04-21 16:53:16 -04:00
parent 677117983a
commit 424405e3e8
3 changed files with 15 additions and 3 deletions

View File

@@ -197,7 +197,6 @@ class ListModel(QAbstractListModel):
if (n <= 0) or (from_ == to) or (qlast == to) or \
not (self.rowCount() > qlast >= 0) or \
not self.rowCount() >= to >= 0:
logging.warning("No need for move or out of range")
return
qidx = QModelIndex()