mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
Activate the "read frequency once" orange button.
Delete the last tentatively-saved file on program exit. No negative numbers needed on "CW ID" spinner. Updates to User's Guide. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3259 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
8e2b9fbd5a
commit
e54cad0b40
Binary file not shown.
@ -408,7 +408,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>-20</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>10</number>
|
<number>10</number>
|
||||||
|
@ -950,6 +950,7 @@ void MainWindow::closeEvent(QCloseEvent*)
|
|||||||
void MainWindow::OnExit()
|
void MainWindow::OnExit()
|
||||||
{
|
{
|
||||||
g_pWideGraph->saveSettings();
|
g_pWideGraph->saveSettings();
|
||||||
|
if(m_fname != "") killFile();
|
||||||
m_killAll=true;
|
m_killAll=true;
|
||||||
mem_jt9->detach();
|
mem_jt9->detach();
|
||||||
QFile quitFile(m_appDir + "/.quit");
|
QFile quitFile(m_appDir + "/.quit");
|
||||||
@ -2818,19 +2819,17 @@ void MainWindow::on_pbT2R_clicked()
|
|||||||
|
|
||||||
void MainWindow::on_readFreq_clicked()
|
void MainWindow::on_readFreq_clicked()
|
||||||
{
|
{
|
||||||
if(m_dontReadFreq) {
|
m_dontReadFreq=false;
|
||||||
m_dontReadFreq=false;
|
double fMHz=rig->getFreq(RIG_VFO_CURR)/1000000.0;
|
||||||
} else {
|
if(fMHz<0.0) {
|
||||||
double fMHz=rig->getFreq(RIG_VFO_CURR)/1000000.0;
|
QString rt;
|
||||||
if(fMHz<0.0) {
|
rt.sprintf("Rig control error %d\nFailed to read frequency.",
|
||||||
QString rt;
|
int(1000000.0*fMHz));
|
||||||
rt.sprintf("Rig control error %d\nFailed to read frequency.",
|
msgBox(rt);
|
||||||
int(1000000.0*fMHz));
|
m_catEnabled=false;
|
||||||
msgBox(rt);
|
}
|
||||||
m_catEnabled=false;
|
if(fMHz<0.01 or fMHz>1300.0) fMHz=0;
|
||||||
}
|
int ndiff=1000000.0*(fMHz-m_dialFreq);
|
||||||
int ndiff=1000000.0*(fMHz-m_dialFreq);
|
if(ndiff!=0) dialFreqChanged2(fMHz);
|
||||||
if(ndiff!=0) dialFreqChanged2(fMHz);
|
|
||||||
qDebug() << "A" << fMHz << ndiff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user