Spreadsheet: Don't update line edit on top unless we have to.

This commit is contained in:
Eivind Kvedalen 2016-01-02 20:43:53 +01:00
parent 160d88c883
commit a760487ad2

View File

@ -307,7 +307,9 @@ void SheetView::updateCell(const App::Property *prop)
CellAddress address;
sheet->getCellAddress(prop, address);
updateContentLine();
if (currentIndex().row() == address.row() && currentIndex().column() == address.col() )
updateContentLine();
}
catch (...) {
// Property is not a cell