some debug, fix a crash removing a currently selected contact
This commit is contained in:
parent
e31ef78e71
commit
19835af3cf
9 changed files with 40 additions and 14 deletions
|
@ -133,10 +133,13 @@ void FeedView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottom
|
|||
|
||||
void FeedView::updateGeometries() {
|
||||
//qDebug() << "updateGeometries";
|
||||
QScrollBar* bar = verticalScrollBar();
|
||||
|
||||
const QStyle* st = style();
|
||||
const QAbstractItemModel* m = model();
|
||||
if (m == nullptr)
|
||||
return QAbstractItemView::updateGeometries();
|
||||
|
||||
QScrollBar* bar = verticalScrollBar();
|
||||
const QStyle* st = style();
|
||||
|
||||
QSize layoutBounds = maximumViewportSize();
|
||||
QStyleOptionViewItem option = viewOptions();
|
||||
option.rect.setHeight(maxMessageHeight);
|
||||
|
@ -210,9 +213,8 @@ void FeedView::updateGeometries() {
|
|||
|
||||
positionProgress();
|
||||
|
||||
if (specialDelegate) {
|
||||
if (specialDelegate)
|
||||
clearWidgetsMode = true;
|
||||
}
|
||||
|
||||
QAbstractItemView::updateGeometries();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue