Date: | 2015-04-26 16:05:59 (8 years 1 month 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 | ||
---|---|---|
994 | 994 | x++; |
995 | 995 | } |
996 | 996 | rename(linkApp->getFile().c_str(),newFileName.c_str()); |
997 | linkApp->renameFile(newFileName); | |
997 | linkApp->setFile(newFileName); | |
998 | 998 | |
999 | 999 | INFO("New section index: %zd.\n", newSectionIndex - menu->getSections().begin()); |
1000 | 1000 |
src/linkapp.cpp | ||
---|---|---|
675 | 675 | edited = true; |
676 | 676 | } |
677 | 677 | |
678 | void LinkApp::renameFile(const string &name) { | |
678 | void LinkApp::setFile(const string &name) { | |
679 | 679 | file = name; |
680 | 680 | } |
src/linkapp.h | ||
---|---|---|
93 | 93 | bool isEditable() { return editable; } |
94 | 94 | |
95 | 95 | const std::string &getFile() { return file; } |
96 | void renameFile(const std::string &name); | |
96 | void setFile(const std::string &name); | |
97 | 97 | |
98 | 98 | private: |
99 | 99 | void drawLaunch(Surface& s); |
Branches:
install_locations
master
opkrun
packages