Changeset 87898 in vbox
- Timestamp:
- Mar 1, 2021 11:23:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.cpp
r87737 r87898 307 307 { 308 308 AssertPtrReturnVoid(m_pComboBox); 309 QILineEdit *pLineEdit = qobject_cast<QILineEdit*>(m_pComboBox->lineEdit());310 AssertPtrReturnVoid(pLineEdit);311 pLineEdit->mark(fError, strErrorMessage);309 QILineEdit *pLineEdit = isEditable() ? qobject_cast<QILineEdit*>(m_pComboBox->lineEdit()) : 0; 310 if (pLineEdit) 311 pLineEdit->mark(fError, strErrorMessage); 312 312 } 313 313 … … 338 338 AssertPtrReturnVoid(m_pComboBox); 339 339 m_pComboBox->setEditable(fEditable); 340 341 /* Replace the line-edit so that we can mark errors: */ 342 if (isEditable()) 343 m_pComboBox->setLineEdit(new QILineEdit); 340 344 } 341 345 … … 385 389 AssertPtrReturnVoid(m_pComboBox); 386 390 { 387 /* Replace the line edit of the combox box so that we can mark it for errors: */388 QILineEdit *pLineEdit = new QILineEdit;389 m_pComboBox->setLineEdit(pLineEdit);390 391 /* Configure combo-box: */ 391 392 setFocusProxy(m_pComboBox);
Note:
See TracChangeset
for help on using the changeset viewer.