mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Converted public fields of LinkApp to private.
Although exposing a read/write reference to a private field is not much better than having a public field. Well, at least we are explicit about the nasty stuff now.
This commit is contained in:
@@ -299,7 +299,7 @@ void Menu::deleteSelectedLink() {
|
||||
cout << "\033[0;34mGMENU2X:\033[0m Deleting link " << selLink()->getTitle() << endl;
|
||||
#endif
|
||||
if (selLinkApp()!=NULL)
|
||||
unlink(selLinkApp()->file.c_str());
|
||||
unlink(selLinkApp()->getFile().c_str());
|
||||
gmenu2x->sc.del(selLink()->getIconPath());
|
||||
sectionLinks()->erase( sectionLinks()->begin() + selLinkIndex() );
|
||||
setLinkIndex(selLinkIndex());
|
||||
|
||||
Reference in New Issue
Block a user