OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| Source at commit d1208dfcc54f19d51b736b4d7ec9db7ba87a7604 created 1 year 9 months ago. By bartbes, gmenu2x: Fixed file explorer/dialog | |
|---|---|
| 1 | --- gmenu2x/src/filedialog.cpp 2010-08-03 12:18:26.000000000 +0200 |
| 2 | +++ gmenu2xm/src/filedialog.cpp 2010-08-03 13:31:40.000000000 +0200 |
| 3 | @@ -35,7 +35,7 @@ |
| 4 | this->text = text; |
| 5 | this->filter = filter; |
| 6 | this->file = ""; |
| 7 | - setPath("/card"); |
| 8 | + setPath("/"); |
| 9 | title = "File Browser"; |
| 10 | if (!file.empty()) { |
| 11 | string::size_type pos = file.rfind("/"); |
| 12 | @@ -50,7 +50,7 @@ |
| 13 | bool FileDialog::exec() { |
| 14 | bool close = false, result = true, ts_pressed = false; |
| 15 | if (!fileExists(path())) |
| 16 | - setPath("/card"); |
| 17 | + setPath("/"); |
| 18 | |
| 19 | fl.setFilter(filter); |
| 20 | fl.browse(); |
| 21 | @@ -155,7 +155,7 @@ |
| 22 | } break; |
| 23 | case FD_ACTION_GOUP: { |
| 24 | string::size_type p = path().rfind("/"); |
| 25 | - if (p==string::npos || path().substr(0,11)!="/card" || p<4) |
| 26 | + if (p==string::npos || path().substr(0,11)!="/" || p<4) |
| 27 | return false; |
| 28 | else |
| 29 | setPath( path().substr(0,p) ); |
| 30 | --- gmenu2x/src/gmenu2x.cpp 2010-08-03 13:55:31.000000000 +0200 |
| 31 | +++ gmenu2xm/src/gmenu2x.cpp 2010-08-03 13:55:50.000000000 +0200 |
| 32 | @@ -998,7 +998,7 @@ |
| 33 | } |
| 34 | |
| 35 | void GMenu2X::explorer() { |
| 36 | - FileDialog fd(this,tr["Select an application"],".gpu,.dge,.sh"); |
| 37 | + FileDialog fd(this,tr["Select an application"],".gpu,.dge,.sh,"); |
| 38 | if (fd.exec()) { |
| 39 | if (confInt["saveSelection"] && (confInt["section"]!=menu->selSectionIndex() || confInt["link"]!=menu->selLinkIndex())) |
| 40 | writeConfig(); |
| 41 | |
