changing the selection aborts editing, too!
svn-id: r4657
This commit is contained in:
parent
39670a73c0
commit
f73c1658c8
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ void ListWidget::handleMouseDown(int x, int y, int button, int clickCount)
|
||||||
_selectedItem = (y - 2) / LINE_HEIGHT + _currentPos;
|
_selectedItem = (y - 2) / LINE_HEIGHT + _currentPos;
|
||||||
|
|
||||||
if (_editMode && oldSelectedItem != _selectedItem) {
|
if (_editMode && oldSelectedItem != _selectedItem) {
|
||||||
// loose caret
|
// undo any changes made
|
||||||
_list[_selectedItem].deleteLastChar();
|
_list[oldSelectedItem] = _backupString;
|
||||||
_editMode = false;
|
_editMode = false;
|
||||||
}
|
}
|
||||||
draw();
|
draw();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue