Release sound card handling
This commit is contained in:
parent
c82ea93668
commit
093e79cd7a
@ -445,6 +445,16 @@ void SettingsWindow::loadSystemValues()
|
||||
}
|
||||
}
|
||||
|
||||
system("/usr/local/bin/autoapp_helper getdefaultoutput");
|
||||
if (rFile.exists()) {
|
||||
QFile returnFile(QString("/tmp/return_value"));
|
||||
returnFile.open(QIODevice::ReadOnly);
|
||||
QTextStream data_return(&returnFile);
|
||||
QStringList defoutput = data_return.readAll().split("\n");
|
||||
returnFile.close();
|
||||
ui_->comboBoxPulseOutput->setCurrentText(defoutput[0]);
|
||||
}
|
||||
|
||||
system("/usr/local/bin/autoapp_helper getinputs");
|
||||
if (rFile.exists()) {
|
||||
QFile returnFile(QString("/tmp/return_value"));
|
||||
@ -465,6 +475,16 @@ void SettingsWindow::loadSystemValues()
|
||||
}
|
||||
}
|
||||
|
||||
system("/usr/local/bin/autoapp_helper getdefaultinput");
|
||||
if (rFile.exists()) {
|
||||
QFile returnFile(QString("/tmp/return_value"));
|
||||
returnFile.open(QIODevice::ReadOnly);
|
||||
QTextStream data_return(&returnFile);
|
||||
QStringList definput = data_return.readAll().split("\n");
|
||||
returnFile.close();
|
||||
ui_->comboBoxPulseInput->setCurrentText(definput[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void SettingsWindow::onShowBindings()
|
||||
|
@ -676,7 +676,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>To activate changed audio device you have to reboot!</string>
|
||||
<string>To activate changed audio device you have to disconnect/reconnect phone!</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@ -688,7 +688,7 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
||||
<widget class="QLabel" name="labelSettingsInfo_Icon_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<x>20</x>
|
||||
<y>114</y>
|
||||
<width>31</width>
|
||||
<height>31</height>
|
||||
|
Loading…
x
Reference in New Issue
Block a user