From 69e1c87f7acf3ad68117e9de9174cc7165d511bc Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Thu, 24 Dec 2015 14:27:39 +0100 Subject: [PATCH] EditDialog: Update dock after inline editing of cell When having set the edit dialog to work in dock mode but changing the content of a cell using the inline editor of the grid view, update the text in the editor of the docked dialog, too. See issue #441. --- src/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3c9a1ce2..1197bc9f 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -500,6 +500,7 @@ bool MainWindow::fileClose() delete m_browseTableModel; m_browseTableModel = new SqliteTableModel(this, &db, PreferencesDialog::getSettingsValue("db", "prefetchsize").toInt()); connect(ui->dataTable->filterHeader(), SIGNAL(filterChanged(int,QString)), this, SLOT(updateFilter(int,QString))); + connect(m_browseTableModel, SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector)), this, SLOT(dataTableSelectionChanged(QModelIndex))); // Remove all stored table information browse data tab browseTableSettings.clear();