mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed model list dialog not accepting changes.
This commit is contained in:
parent
06496f1cf0
commit
9e9ee11f60
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@ lcQModelListDialog::~lcQModelListDialog()
|
|||
|
||||
void lcQModelListDialog::accept()
|
||||
{
|
||||
mModels.clear();
|
||||
|
||||
for (int ItemIdx = 0; ItemIdx < ui->ModelList->count(); ItemIdx++)
|
||||
{
|
||||
QListWidgetItem* Item = ui->ModelList->item(ItemIdx);
|
||||
mModels.append(QPair<QString, lcModel*>(Item->text(), (lcModel*)Item->data(Qt::UserRole).value<uintptr_t>()));
|
||||
}
|
||||
|
||||
mActiveModel = ui->ModelList->currentRow();
|
||||
if (mActiveModel < 0)
|
||||
mActiveModel = 0;
|
||||
|
|
Loading…
Reference in a new issue