One click of Erase clears the text area in Echo mode. Fix calibration of

the "pwr" slider, relative to what actually happens.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5574 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2015-06-10 16:09:08 +00:00
parent 3a4c4ed7ce
commit 686b608324
2 changed files with 2 additions and 2 deletions

View File

@ -1771,7 +1771,7 @@ void MainWindow::on_EraseButton_clicked() //Erase
{
qint64 ms=QDateTime::currentMSecsSinceEpoch();
ui->decodedTextBrowser2->clear();
if(m_mode.mid(0,4)=="WSPR") {
if(m_mode.mid(0,4)=="WSPR" or m_mode=="Echo") {
ui->decodedTextBrowser->clear();
} else {
m_QSOText.clear();

View File

@ -146,7 +146,7 @@ qreal SoundOutput::attenuation () const
void SoundOutput::setAttenuation (qreal a)
{
Q_ASSERT (0. <= a && a <= 999.);
m_volume = qPow (10., -a / 10.);
m_volume = qPow(10.0, -a/20.0);
// qDebug () << "SoundOut: attn = " << a << ", vol = " << m_volume;
if (m_stream)
{