diff options
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 4001bc6347..c88b9857d8 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -495,13 +495,11 @@ void Config::browseFolder() | |||
495 | #if defined(Q_OS_MACX) | 495 | #if defined(Q_OS_MACX) |
496 | browser->setRoot("/Volumes"); | 496 | browser->setRoot("/Volumes"); |
497 | #elif defined(Q_OS_LINUX) | 497 | #elif defined(Q_OS_LINUX) |
498 | QDir a("/media"); | 498 | browser->setDir("/media"); |
499 | browser->setDir(a); | ||
500 | #endif | 499 | #endif |
501 | if( ui.mountPoint->text() != "" ) | 500 | if( ui.mountPoint->text() != "" ) |
502 | { | 501 | { |
503 | QDir d(ui.mountPoint->text()); | 502 | browser->setDir(ui.mountPoint->text()); |
504 | browser->setDir(d); | ||
505 | } | 503 | } |
506 | browser->show(); | 504 | browser->show(); |
507 | connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString))); | 505 | connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString))); |
@@ -516,8 +514,7 @@ void Config::browseCache() | |||
516 | #elif defined(Q_OS_WIN32) | 514 | #elif defined(Q_OS_WIN32) |
517 | cbrowser->setFilter(QDir::Drives); | 515 | cbrowser->setFilter(QDir::Drives); |
518 | #endif | 516 | #endif |
519 | QDir d(ui.cachePath->text()); | 517 | cbrowser->setDir(ui.cachePath->text()); |
520 | cbrowser->setDir(d); | ||
521 | cbrowser->show(); | 518 | cbrowser->show(); |
522 | connect(cbrowser, SIGNAL(itemChanged(QString)), this, SLOT(setCache(QString))); | 519 | connect(cbrowser, SIGNAL(itemChanged(QString)), this, SLOT(setCache(QString))); |
523 | } | 520 | } |
@@ -625,8 +622,7 @@ void Config::browseTts() | |||
625 | 622 | ||
626 | if(QFileInfo(ui.ttsExecutable->text()).isDir()) | 623 | if(QFileInfo(ui.ttsExecutable->text()).isDir()) |
627 | { | 624 | { |
628 | QDir d(ui.ttsExecutable->text()); | 625 | browser.setDir(ui.ttsExecutable->text()); |
629 | browser.setDir(d); | ||
630 | } | 626 | } |
631 | if(browser.exec() == QDialog::Accepted) | 627 | if(browser.exec() == QDialog::Accepted) |
632 | { | 628 | { |
@@ -647,8 +643,7 @@ void Config::browseEnc() | |||
647 | 643 | ||
648 | if(QFileInfo(ui.encoderExecutable->text()).isDir()) | 644 | if(QFileInfo(ui.encoderExecutable->text()).isDir()) |
649 | { | 645 | { |
650 | QDir d(ui.encoderExecutable->text()); | 646 | browser.setDir(ui.encoderExecutable->text()); |
651 | browser.setDir(d); | ||
652 | } | 647 | } |
653 | if(browser.exec() == QDialog::Accepted) | 648 | if(browser.exec() == QDialog::Accepted) |
654 | { | 649 | { |