mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop: properly initialize activeText of model-delegates
For reasons that I don't understand, we keep track of the current combo-box text for our model-delegates. However, that text was not initialized when the editor was generated, leading to a UI bug in the cylinder and weight widgets: Activate a field, click somewhere else -> either the empty string or the previous string was set. Reported-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
bbd3f0dd6d
commit
e8beeb6767
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ QWidget *ComboBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewI
|
|||
currCombo.comboEditor = comboDelegate;
|
||||
currCombo.currRow = index.row();
|
||||
currCombo.model = const_cast<QAbstractItemModel *>(index.model());
|
||||
currCombo.activeText = currCombo.model->data(index).toString();
|
||||
keyboardFinished = false;
|
||||
|
||||
// Current display of things on Gnome3 looks like shit, so
|
||||
|
|
Loading…
Add table
Reference in a new issue