1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 00:39:41 +02:00

Changed LinkApp::renameFile() to setFile()

The original method name suggested it might rename the file on disk,
which it does not.
This commit is contained in:
Maarten ter Huurne 2015-04-26 16:05:59 +02:00
parent 10429af6c9
commit 49bbf3a4f6
3 changed files with 3 additions and 3 deletions

View File

@ -994,7 +994,7 @@ void GMenu2X::editLink() {
x++;
}
rename(linkApp->getFile().c_str(),newFileName.c_str());
linkApp->renameFile(newFileName);
linkApp->setFile(newFileName);
INFO("New section index: %zd.\n", newSectionIndex - menu->getSections().begin());

View File

@ -675,6 +675,6 @@ void LinkApp::setSelectorFilter(const string &selectorfilter) {
edited = true;
}
void LinkApp::renameFile(const string &name) {
void LinkApp::setFile(const string &name) {
file = name;
}

View File

@ -93,7 +93,7 @@ public:
bool isEditable() { return editable; }
const std::string &getFile() { return file; }
void renameFile(const std::string &name);
void setFile(const std::string &name);
private:
void drawLaunch(Surface& s);