Date:2015-04-26 16:05:59 (5 years 29 days ago)
Author:Maarten ter Huurne
Commit:49bbf3a4f6aea366009f0bca27ab0ded34e0bff4
Message:Changed LinkApp::renameFile() to setFile()

The original method name suggested it might rename the file on disk,
which it does not.
Files: src/gmenu2x.cpp (1 diff)
src/linkapp.cpp (1 diff)
src/linkapp.h (1 diff)

Change Details

src/gmenu2x.cpp
994994                x++;
995995            }
996996            rename(linkApp->getFile().c_str(),newFileName.c_str());
997            linkApp->renameFile(newFileName);
997            linkApp->setFile(newFileName);
998998
999999            INFO("New section index: %zd.\n", newSectionIndex - menu->getSections().begin());
10001000
src/linkapp.cpp
675675    edited = true;
676676}
677677
678void LinkApp::renameFile(const string &name) {
678void LinkApp::setFile(const string &name) {
679679    file = name;
680680}
src/linkapp.h
9393    bool isEditable() { return editable; }
9494
9595    const std::string &getFile() { return file; }
96    void renameFile(const std::string &name);
96    void setFile(const std::string &name);
9797
9898private:
9999    void drawLaunch(Surface& s);

Archive Download the corresponding diff file



interactive