Skip to content

Commit e6336de

Browse files
author
Paweł Salawa
committed
#5443 Fixed data entering in Grid View after it has got broken in 3.4.18 (entering editing mode by starting to type jumped to wrong cell).
1 parent fa98ac8 commit e6336de

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ChangeLog
22

33
### 3.4.19
4+
- BUGFIX: #5443 Fixed data entering in Grid View after it has got broken in 3.4.18 (entering editing mode by starting to type jumped to wrong cell).
45
- BUGFIX: #5447 Database object filtering improved - both speed (3x) and reliability (i.e. typing while filtering is in progress).
56
- BUGFIX: #5450 Increased precision for very small decimal numbers (like 1e-15).
67
- BUGFIX: #5440 Fixed formatting string literals in WITH-CTE clause.

SQLiteStudio3/guiSQLiteStudio/datagrid/sqlqueryview.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ void SqlQueryView::init()
4747
itemDelegate = new SqlQueryItemDelegate();
4848
setItemDelegate(itemDelegate);
4949
setMouseTracking(true);
50-
// setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::EditKeyPressed);
51-
setEditTriggers(QAbstractItemView::NoEditTriggers);
50+
setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::EditKeyPressed);
5251

5352
setContextMenuPolicy(Qt::CustomContextMenu);
5453
contextMenu = new QMenu(this);
@@ -679,12 +678,11 @@ void SqlQueryView::keyPressEvent(QKeyEvent *e)
679678
{
680679
if (state() != QAbstractItemView::EditingState)
681680
shouldOpenEditor = true;
682-
// edit(currentIndex());
683681
}
684682

685683
QTableView::keyPressEvent(e);
686684

687-
if (shouldOpenEditor)
685+
if (shouldOpenEditor && state() != QAbstractItemView::EditingState)
688686
{
689687
edit(currentIndex());
690688
QApplication::sendEvent(focusWidget(), e);

0 commit comments

Comments
 (0)