changing the selection aborts editing, too!

svn-id: r4657
This commit is contained in:
Max Horn 2002-07-27 14:19:59 +00:00
parent 39670a73c0
commit f73c1658c8

View file

@ -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();