mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
delegates: call fixTabBehavior *before* closing the editor
fixTabBehavior() set the editor text *after* closing the editor. This left us in an inconsistent state where we thought that the editor is active. By reversing two connects, this problem is resolved. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4d5f25ccf4
commit
e5c4dee7f6
1 changed files with 1 additions and 1 deletions
|
@ -84,8 +84,8 @@ const QSize& StarWidgetsDelegate::starSize() const
|
||||||
ComboBoxDelegate::ComboBoxDelegate(QAbstractItemModel *model, QObject *parent, bool allowEdit) : QStyledItemDelegate(parent), model(model)
|
ComboBoxDelegate::ComboBoxDelegate(QAbstractItemModel *model, QObject *parent, bool allowEdit) : QStyledItemDelegate(parent), model(model)
|
||||||
{
|
{
|
||||||
editable = allowEdit;
|
editable = allowEdit;
|
||||||
connect(this, &ComboBoxDelegate::closeEditor, this, &ComboBoxDelegate::editorClosed);
|
|
||||||
connect(this, &ComboBoxDelegate::closeEditor, this, &ComboBoxDelegate::fixTabBehavior);
|
connect(this, &ComboBoxDelegate::closeEditor, this, &ComboBoxDelegate::fixTabBehavior);
|
||||||
|
connect(this, &ComboBoxDelegate::closeEditor, this, &ComboBoxDelegate::editorClosed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
|
void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
|
||||||
|
|
Loading…
Add table
Reference in a new issue