mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Use a plain FileLister instead of a pointer in BrowseDialog
Configuration of the FileLister is now left to the subclasses of BrowseDialog, as the construction of a FileLister and its configuration (to show or hide directories and files) have been separated. This allows deleting the destructors of BrowseDialog's subclasses, which existed solely to delete a FileLister object constructed by each subclass. The allocation of a BrowseDialog now also implies allocating enough space for its FileLister, so remove the check for fl being nullptr in BrowseDialog::exec().
This commit is contained in:
committed by
Maarten ter Huurne
parent
1dec6f6f11
commit
0b785770dc
@@ -29,7 +29,6 @@ public:
|
||||
GMenu2X *gmenu2x, Touchscreen &ts, const std::string &text,
|
||||
const std::string &filter="*", const std::string &file="",
|
||||
const std::string &title = "File Dialog");
|
||||
virtual ~FileDialog();
|
||||
bool exec();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user