mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T529, automatically setting/restoring sorting for status messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
4d0f8b9fa0
commit
728a76fc2c
@@ -170,22 +170,18 @@ namespace BlackGui
|
||||
return;
|
||||
}
|
||||
|
||||
//! \fixme KB 2017-09 a possible alternative maybe is to resize rows always to content -> performance?
|
||||
CStatusMessageList newMsgs(messages);
|
||||
if (appendOldMessages && !ui->tvp_StatusMessages->isEmpty())
|
||||
{
|
||||
CStatusMessageList messagesWithOld(messages);
|
||||
messagesWithOld.push_back(ui->tvp_StatusMessages->container());
|
||||
ui->tvp_StatusMessages->rowsResizeModeBasedOnThreshold(messages.size());
|
||||
ui->tvp_StatusMessages->updateContainerMaybeAsync(messagesWithOld);
|
||||
this->setModeToMessages(messagesWithOld.hasErrorMessages());
|
||||
newMsgs.push_back(ui->tvp_StatusMessages->container());
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->tvp_StatusMessages->rowsResizeModeBasedOnThreshold(messages.size());
|
||||
ui->tvp_StatusMessages->updateContainerMaybeAsync(messages);
|
||||
this->setModeToMessages(messages.hasErrorMessages());
|
||||
}
|
||||
this->showKill(false);
|
||||
|
||||
//! \fixme KB 2017-09 a possible alternative maybe is to resize rows always to content -> performance?
|
||||
ui->tvp_StatusMessages->adjustOrderColumn(newMsgs);
|
||||
ui->tvp_StatusMessages->rowsResizeModeBasedOnThreshold(newMsgs.size());
|
||||
ui->tvp_StatusMessages->updateContainerMaybeAsync(newMsgs);
|
||||
|
||||
this->setModeToMessages(false);
|
||||
this->display(timeOutMs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user