[client] bugfix: server log table model signal wasn't linked to receiver lifetime
Dieser Commit ist enthalten in:
Ursprung
473246151b
Commit
8d7e1d2a46
@ -1,9 +1,8 @@
|
||||
/**
|
||||
* client/src/widget/serverlogwidget.cpp
|
||||
* This file is part of Traintastic,
|
||||
* see <https://github.com/traintastic/traintastic>.
|
||||
*
|
||||
* This file is part of the traintastic source code.
|
||||
*
|
||||
* Copyright (C) 2021-2022 Reinder Feenstra
|
||||
* Copyright (C) 2021-2026 Reinder Feenstra
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -44,7 +43,7 @@ ServerLogWidget::ServerLogWidget(std::shared_ptr<Connection> connection, QWidget
|
||||
|
||||
setModel(m_model);
|
||||
|
||||
connect(m_model, &ServerLogTableModel::rowCountChanged,
|
||||
connect(m_model, &ServerLogTableModel::rowCountChanged, this,
|
||||
[this]()
|
||||
{
|
||||
if(m_stickToBottom)
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren