diff options
-rw-r--r-- | gui/ListWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index 2b438f2153..d19833dbe8 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -68,8 +68,8 @@ void ListWidget::handleMouseDown(int x, int y, int button, int clickCount) _selectedItem = (y - 2) / LINE_HEIGHT + _currentPos; if (_editMode && oldSelectedItem != _selectedItem) { - // loose caret - _list[_selectedItem].deleteLastChar(); + // undo any changes made + _list[oldSelectedItem] = _backupString; _editMode = false; } draw(); |