summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index fd81313..979549d 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -324,26 +324,31 @@ void AdvancedFm::changeTo(const QString &dir) {
324 update(); 324 update();
325} 325}
326 326
327void AdvancedFm::homeButtonPushed() { 327void AdvancedFm::homeButtonPushed() {
328 changeTo(QDir::homeDirPath()); 328 changeTo(QDir::homeDirPath());
329} 329}
330 330
331void AdvancedFm::docButtonPushed() { 331void AdvancedFm::docButtonPushed() {
332 changeTo(QPEApplication::documentDir()); 332 changeTo(QPEApplication::documentDir());
333} 333}
334 334
335void AdvancedFm::SDButtonPushed() { 335void AdvancedFm::SDButtonPushed() {
336 Opie::Core::OStorageInfo info; 336 Opie::Core::OStorageInfo info;
337 changeTo(info.sdPath()); 337 if(StorageInfo::hasSd() ) {
338 changeTo(info.sdPath());
339 }
340 else if(StorageInfo::hasMmc()) {
341 changeTo(info.mmcPath());
342 }
338} 343}
339 344
340void AdvancedFm::CFButtonPushed() { 345void AdvancedFm::CFButtonPushed() {
341 Opie::Core::OStorageInfo info; 346 Opie::Core::OStorageInfo info;
342 changeTo(info.cfPath()); 347 changeTo(info.cfPath());
343} 348}
344 349
345void AdvancedFm::QPEButtonPushed() { 350void AdvancedFm::QPEButtonPushed() {
346 changeTo(QPEApplication::qpeDir()); 351 changeTo(QPEApplication::qpeDir());
347} 352}
348 353
349void AdvancedFm::doAbout() { 354void AdvancedFm::doAbout() {