1
0
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:
Maarten ter Huurne
2010-07-27 21:26:02 +02:00
parent 8a9aac028b
commit 0cd6b8264c
4 changed files with 19 additions and 11 deletions

View File

@@ -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());