setHandleXLimits();
+ if(model->rowCount() > 0)
+ rowsInserted(QModelIndex(), 0, model->rowCount() - 1);
+
connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
this, SLOT(rowsInserted(const QModelIndex &, int, int)));
connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
this, SLOT(rowsAboutToBeRemoved(const QModelIndex &, int, int)));
connect(model, SIGNAL(dataChanged(QModelIndex, QModelIndex)), SLOT(dataChanged(QModelIndex, QModelIndex)));
- if(model->rowCount() > 0)
- rowsInserted(QModelIndex(), 0, model->rowCount() - 1);
-
#ifdef HAVE_WEBKIT
webPreview.timer.setSingleShot(true);
connect(&webPreview.timer, SIGNAL(timeout()), this, SLOT(webPreviewNextStep()));
if(_firstColHandlePos == xpos)
return;
- _firstColHandlePos = xpos;
+ _firstColHandlePos = xpos >= 0 ? xpos : 0;
ChatViewSettings viewSettings(this);
viewSettings.setValue("FirstColumnHandlePos", _firstColHandlePos);
ChatViewSettings defaultSettings;