X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=browsemainwindow.cpp;h=b410e319503dc2c33f72508c29eba51e6d234ce7;hb=a2cdc1b3ffcd5640dab4b6832cd74b425f81327e;hp=01ed1c21b336333f20a6e9cee21647d03e71341a;hpb=3606d69e42b19947969814e44eb4426e2ca8ac21;p=vlc-remote diff --git a/browsemainwindow.cpp b/browsemainwindow.cpp index 01ed1c2..b410e31 100644 --- a/browsemainwindow.cpp +++ b/browsemainwindow.cpp @@ -1,5 +1,5 @@ /* VLC-REMOTE for MAEMO 5 -* Copyright (C) 2010 Schutz Sacha , Dru Moore +* Copyright (C) 2010 Schutz Sacha , Dru Moore , Yann Nave * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free @@ -91,7 +91,8 @@ void BrowseMainWindow::onListSelectionChanged() { ui->browseButton->setDisabled(true); ui->playButton->setDisabled(true); ui->addButton->setDisabled(true); - browseDirectory(mCurrentElement.path); + mCurrentDir = mCurrentElement.path; + browseDirectory(mCurrentDir); } else { // can we browse? @@ -122,7 +123,8 @@ void BrowseMainWindow::onBrowse() { // check for directory if (0 == QString::compare("directory", mCurrentElement.type)) { // call browseDirectory - this->browseDirectory(mCurrentElement.path); + mCurrentDir = mCurrentElement.path; + browseDirectory(mCurrentDir); } else { ui->browseButton->setDisabled(true);