mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 20:56:25 +02:00
handle changes in server list properly
This commit is contained in:
parent
8de113e65c
commit
b6bc3cb166
2 changed files with 7 additions and 3 deletions
|
@ -249,6 +249,7 @@ Application::~Application() {
|
||||||
|
|
||||||
_audio.shutdown();
|
_audio.shutdown();
|
||||||
|
|
||||||
|
VoxelNode::removeDeleteHook(&_voxels); // we don't need to do this processing on shutdown
|
||||||
delete Menu::getInstance();
|
delete Menu::getInstance();
|
||||||
|
|
||||||
delete _oculusProgram;
|
delete _oculusProgram;
|
||||||
|
|
|
@ -57,8 +57,12 @@ VoxelStatsDialog::VoxelStatsDialog(QWidget* parent, NodeToVoxelSceneStats* model
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelStatsDialog::RemoveStatItem(int item) {
|
void VoxelStatsDialog::RemoveStatItem(int item) {
|
||||||
QLabel* label = _labels[item];
|
QLabel* myLabel = _labels[item];
|
||||||
delete label;
|
QWidget* automaticLabel = _form->labelForField(myLabel);
|
||||||
|
_form->removeWidget(myLabel);
|
||||||
|
_form->removeWidget(automaticLabel);
|
||||||
|
automaticLabel->deleteLater();
|
||||||
|
myLabel->deleteLater();
|
||||||
_labels[item] = NULL;
|
_labels[item] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +198,6 @@ void VoxelStatsDialog::paintEvent(QPaintEvent* event) {
|
||||||
"Leaves: " << serversLeavesString.toLocal8Bit().constData() << "";
|
"Leaves: " << serversLeavesString.toLocal8Bit().constData() << "";
|
||||||
label->setText(statsValue.str().c_str());
|
label->setText(statsValue.str().c_str());
|
||||||
|
|
||||||
|
|
||||||
showAllVoxelServers();
|
showAllVoxelServers();
|
||||||
|
|
||||||
this->QDialog::paintEvent(event);
|
this->QDialog::paintEvent(event);
|
||||||
|
|
Loading…
Reference in a new issue