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:
parent
10429af6c9
commit
49bbf3a4f6
@ -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());
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user