aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-06 12:03:36 -0800
committerChris Robinson <[email protected]>2016-03-06 12:03:36 -0800
commit3b9fe27cbe466ecb2a1aad8013f2dc256d708aaa (patch)
tree968bf80e88f820b09b08b91c29f1b8d6b9e7b6c2 /utils
parent6971e8684718324f641fa0dba9d0fd31bee240f3 (diff)
Browse with the current or default device already selected
Diffstat (limited to 'utils')
-rw-r--r--utils/alsoft-config/mainwindow.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index 73494b11..5f57ce0f 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -1156,7 +1156,9 @@ void MainWindow::showDisabledBackendMenu(QPoint pt)
void MainWindow::selectOSSPlayback()
{
- QString fname = QFileDialog::getOpenFileName(this, tr("Select Playback Device"));
+ QString current = ui->ossDefaultDeviceLine->text();
+ if(current.isEmpty()) current = ui->ossDefaultDeviceLine->placeholderText();
+ QString fname = QFileDialog::getOpenFileName(this, tr("Select Playback Device"), current);
if(!fname.isEmpty())
{
ui->ossDefaultDeviceLine->setText(fname);
@@ -1166,7 +1168,9 @@ void MainWindow::selectOSSPlayback()
void MainWindow::selectOSSCapture()
{
- QString fname = QFileDialog::getOpenFileName(this, tr("Select Capture Device"));
+ QString current = ui->ossDefaultCaptureLine->text();
+ if(current.isEmpty()) current = ui->ossDefaultCaptureLine->placeholderText();
+ QString fname = QFileDialog::getOpenFileName(this, tr("Select Capture Device"), current);
if(!fname.isEmpty())
{
ui->ossDefaultCaptureLine->setText(fname);
@@ -1176,7 +1180,9 @@ void MainWindow::selectOSSCapture()
void MainWindow::selectSolarisPlayback()
{
- QString fname = QFileDialog::getOpenFileName(this, tr("Select Playback Device"));
+ QString current = ui->solarisDefaultDeviceLine->text();
+ if(current.isEmpty()) current = ui->solarisDefaultDeviceLine->placeholderText();
+ QString fname = QFileDialog::getOpenFileName(this, tr("Select Playback Device"), current);
if(!fname.isEmpty())
{
ui->solarisDefaultDeviceLine->setText(fname);