OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
| Date: | 2010-08-11 05:26:18 (1 year 5 months ago) |
|---|---|
| Author: | Xiangfu Liu |
| Commit: | 8e5d78dcccb9afc440272b0f33962f56f544ea9f |
| Message: | [gmenu2x] this patch is out of date Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
| Files: |
gmenu2x/patches/001-filedialog.patch (1 diff) |
Change Details
| gmenu2x/patches/001-filedialog.patch | ||
|---|---|---|
| 1 | +++ gmenu2xm/src/filedialog.cpp 2010-08-03 15:08:13.000000000 +0200 | |
| 2 | @@ -35,7 +35,7 @@ | |
| 3 | this->text = text; | |
| 4 | this->filter = filter; | |
| 5 | this->file = ""; | |
| 6 | - setPath("/card"); | |
| 7 | + setPath("/"); | |
| 8 | title = "File Browser"; | |
| 9 | if (!file.empty()) { | |
| 10 | string::size_type pos = file.rfind("/"); | |
| 11 | @@ -50,7 +50,7 @@ | |
| 12 | bool FileDialog::exec() { | |
| 13 | bool close = false, result = true, ts_pressed = false; | |
| 14 | if (!fileExists(path())) | |
| 15 | - setPath("/card"); | |
| 16 | + setPath("/"); | |
| 17 | ||
| 18 | fl.setFilter(filter); | |
| 19 | fl.browse(); | |
| 20 | @@ -155,7 +155,7 @@ | |
| 21 | } break; | |
| 22 | case FD_ACTION_GOUP: { | |
| 23 | string::size_type p = path().rfind("/"); | |
| 24 | - if (p==string::npos || path().substr(0,11)!="/card" || p<4) | |
| 25 | + if (p==string::npos) | |
| 26 | return false; | |
| 27 | else | |
| 28 | setPath( path().substr(0,p) ); | |
| 29 | +++ gmenu2xm/src/gmenu2x.cpp 2010-08-03 13:55:50.000000000 +0200 | |
| 30 | @@ -998,7 +998,7 @@ | |
| 31 | } | |
| 32 | ||
| 33 | void GMenu2X::explorer() { | |
| 34 | - FileDialog fd(this,tr["Select an application"],".gpu,.dge,.sh"); | |
| 35 | + FileDialog fd(this,tr["Select an application"],".gpu,.dge,.sh,"); | |
| 36 | if (fd.exec()) { | |
| 37 | if (confInt["saveSelection"] && (confInt["section"]!=menu->selSectionIndex() || confInt["link"]!=menu->selLinkIndex())) | |
| 38 | writeConfig(); | |
