qtui: Fix missing default value for backlog fetching
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 4 Oct 2020 15:44:33 +0000 (17:44 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 4 Oct 2020 16:19:48 +0000 (18:19 +0200)
If EnsureBacklogOnBufferShow is not configured in the settings, it
should be defaulted to true. Otherwise, Quassel will show empty
buffers until manually scrolled.

src/qtui/bufferwidget.cpp

index db209a3..1b12513 100644 (file)
@@ -86,7 +86,7 @@ BufferWidget::BufferWidget(QWidget* parent)
     s.initAndNotify("AutoMarkerLineOnLostFocus", this, &BufferWidget::setAutoMarkerLineOnLostFocus, true);
 
     BacklogSettings backlogSettings;
-    backlogSettings.initAndNotify("EnsureBacklogOnBufferShow", this, &BufferWidget::setEnsureBacklogOnBufferShow);
+    backlogSettings.initAndNotify("EnsureBacklogOnBufferShow", this, &BufferWidget::setEnsureBacklogOnBufferShow, true);
 }
 
 BufferWidget::~BufferWidget()