- if(msgId.isValid()) {
- ChatLine *line = chatLine(msgId, false);
- if(line) {
- // if this was the last line, we won't see it because it's outside the sceneRect
- // .. which is exactly what we want :)
- _markerLine->setPos(line->pos() + QPointF(0, line->height()));
-
- // DayChange messages might have been hidden outside the scene rect, don't make the markerline visible then!
- if(_markerLine->pos().y() >= sceneRect().y()) {
- _markerLineValid = true;
- if(_markerLineVisible)
- _markerLine->setVisible(true);
- return;
- }
+ if(!isSingleBufferScene())
+ return;
+ if(!msgId.isValid()) {
+ msgId = Client::markerLine(singleBufferId());
+ if(!msgId.isValid()) {
+ _markerLineValid = false;
+ _markerLine->setVisible(false);
+ return;
+ }
+ }
+
+ ChatLine *line = chatLine(msgId, false);
+ if(line) {
+ // if this was the last line, we won't see it because it's outside the sceneRect
+ // .. which is exactly what we want :)
+ _markerLine->setPos(line->pos() + QPointF(0, line->height()));
+
+ // DayChange messages might have been hidden outside the scene rect, don't make the markerline visible then!
+ if(_markerLine->pos().y() >= sceneRect().y()) {
+ _markerLineValid = true;
+ if(_markerLineVisible)
+ _markerLine->setVisible(true);
+ return;