mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-12-26 21:18:58 +02:00
Eliminated selectedDir argument to LinkApp::launch()
This commit is contained in:
parent
6c80a663e1
commit
d6deb29ba0
@ -542,18 +542,18 @@ void LinkApp::selector(int startSelection, const string &selectorDir) {
|
||||
Selector sel(gmenu2x, this, selectorDir);
|
||||
int selection = sel.exec(startSelection);
|
||||
if (selection!=-1) {
|
||||
gmenu2x->writeTmp(selection, sel.getDir());
|
||||
launch(sel.getFile(), sel.getDir());
|
||||
const string &selectedDir = sel.getDir();
|
||||
if (!selectedDir.empty()) {
|
||||
selectordir = selectedDir;
|
||||
}
|
||||
gmenu2x->writeTmp(selection, selectedDir);
|
||||
launch(sel.getFile());
|
||||
}
|
||||
}
|
||||
|
||||
void LinkApp::launch(const string &selectedFile, const string &selectedDir) {
|
||||
void LinkApp::launch(const string &selectedFile) {
|
||||
drawRun();
|
||||
|
||||
if (selectedDir.empty())
|
||||
selectordir = getSelectorDir();
|
||||
else
|
||||
selectordir = selectedDir;
|
||||
save();
|
||||
|
||||
if (isOpk()) {
|
||||
|
@ -53,9 +53,7 @@ private:
|
||||
#endif
|
||||
|
||||
void start();
|
||||
void launch(
|
||||
const std::string &selectedFile = "",
|
||||
const std::string &selectedDir = "");
|
||||
void launch(const std::string &selectedFile = "");
|
||||
|
||||
protected:
|
||||
virtual const std::string &searchIcon();
|
||||
|
Loading…
Reference in New Issue
Block a user