From e66ac3e666ba85a26879ea8b3915043edc4d9dcb Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Sat, 6 Aug 2016 15:22:27 +0100 Subject: [PATCH] Only update contents of the Edit Cell dock when its visible This significantly speeds up keyboard navigation with large cell data (eg images), then the Edit Cell dock is turned off --- src/MainWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 0d7cb145..51a697cb 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -861,8 +861,10 @@ void MainWindow::dataTableSelectionChanged(const QModelIndex& index) // Don't allow editing of other objects than tables editDock->allowEditing(edit); - // Load the current value into the edit dock only - editDock->loadText(index.data(Qt::EditRole).toByteArray(), index.row(), index.column()); + // If the Edit Cell dock is visible, load the new value into it + if (editDock->isVisible()) { + editDock->loadText(index.data(Qt::EditRole).toByteArray(), index.row(), index.column()); + } } /*