summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installtalkwindow.cpp
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-14 20:10:54 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-14 20:10:54 +0000
commit4c881e2c91891fede75663db3fd005438bb7d001 (patch)
tree73c6cf95459a28bd2e58ea5b2f0f04400def02c7 /rbutil/rbutilqt/installtalkwindow.cpp
parentbedfd7c8b5059495e6c27fd8cca862b9a63f8ca1 (diff)
downloadrockbox-4c881e2c91891fede75663db3fd005438bb7d001.tar.gz
rockbox-4c881e2c91891fede75663db3fd005438bb7d001.tar.bz2
rockbox-4c881e2c91891fede75663db3fd005438bb7d001.zip
Add BrowseDirtree::setDir(const QString&) to simplify the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14694 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/installtalkwindow.cpp')
-rw-r--r--rbutil/rbutilqt/installtalkwindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/installtalkwindow.cpp b/rbutil/rbutilqt/installtalkwindow.cpp
index 324fe442b1..f273721437 100644
--- a/rbutil/rbutilqt/installtalkwindow.cpp
+++ b/rbutil/rbutilqt/installtalkwindow.cpp
@@ -43,13 +43,11 @@ void InstallTalkWindow::browseFolder()
if(QFileInfo(ui.lineTalkFolder->text()).isDir())
{
- QDir d(ui.lineTalkFolder->text());
- browser.setDir(d);
+ browser.setDir(ui.lineTalkFolder->text());
}
else
{
- QDir d("/media");
- browser.setDir(d);
+ browser.setDir("/media"); // FIXME: This looks Linux specific
}
if(browser.exec() == QDialog::Accepted)
{