summaryrefslogtreecommitdiff
path: root/client/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/debug.cc')
-rw-r--r--client/debug.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/debug.cc b/client/debug.cc
index 632db97..282cf93 100644
--- a/client/debug.cc
+++ b/client/debug.cc
@@ -32,6 +32,7 @@
#include <QVBoxLayout>
#include <QCloseEvent>
#include <QSettings>
+#include <QAbstractItemView>
static const char * const class_str[] =
{ "debug", "error", "warn", "log" };
@@ -92,7 +93,7 @@ void DebugWindow::log(const char *func, const char *file, const int line,
if(cl == _log) item->setBackground(QBrush(QColor(200, 230, 200)));
lst->addItem(item);
- lst->scrollToItem(item);
+ lst->scrollToBottom();
}