Ticket #8410: ListWidgetPatch.patch

File ListWidgetPatch.patch, 1.5 KB (added by lordhoto, 19 years ago)
  • gui/chooser.cpp

    Dateien ./scummvm.cvs/.configure.swp und ./scummvm/.configure.swp sind verschieden.
    diff --exclude=.cvsignore --exclude=.deps --exclude=CVS -Pur ./scummvm.cvs/gui/chooser.cpp ./scummvm/gui/chooser.cpp
    old new  
    5353        switch (cmd) {
    5454        case kChooseCmd:
    5555        case kListItemDoubleClickedCmd:
     56                _list->endEditMode();
    5657                setResult(item);
    5758                close();
    5859                break;
  • gui/ListWidget.cpp

    diff --exclude=.cvsignore --exclude=.deps --exclude=CVS -Pur ./scummvm.cvs/gui/ListWidget.cpp ./scummvm/gui/ListWidget.cpp
    old new  
    380380}
    381381
    382382void ListWidget::endEditMode() {
     383        if(!_editMode)
     384                return;
    383385        // send a message that editing finished with a return/enter key press
    384386        _editMode = false;
    385387        _list[_selectedItem] = _editString;
  • gui/ListWidget.h

    diff --exclude=.cvsignore --exclude=.deps --exclude=CVS -Pur ./scummvm.cvs/gui/ListWidget.h ./scummvm/gui/ListWidget.h
    old new  
    8686
    8787        // Made startEditMode for SCUMM's SaveLoadChooser
    8888        void startEditMode();
     89        void endEditMode();
    8990
    9091protected:
    9192        void drawWidget(bool hilite);
     
    9394        int findItem(int x, int y) const;
    9495        void scrollBarRecalc();
    9596
    96         void endEditMode();
    9797        void abortEditMode();
    9898       
    9999        Common::Rect getEditRect() const;