mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Avoid arithmetic errors when parsing the round-robin current text
This commit is contained in:
parent
846b0b6ed8
commit
b05bfecb5f
@ -8039,8 +8039,11 @@ void MainWindow::WSPR_scheduling ()
|
|||||||
{
|
{
|
||||||
QString t=ui->RoundRobin->currentText();
|
QString t=ui->RoundRobin->currentText();
|
||||||
if(m_mode=="FST4W" and t!="Random") {
|
if(m_mode=="FST4W" and t!="Random") {
|
||||||
int i=t.left (1).toInt () - 1;
|
bool ok;
|
||||||
int n=t.right(1).toInt();
|
int i=t.left (1).toInt (&ok) - 1;
|
||||||
|
if (!ok) return;
|
||||||
|
int n=t.right (1).toInt (&ok);
|
||||||
|
if (!ok || 0 == n) return;
|
||||||
|
|
||||||
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
||||||
int nsec=ms/1000;
|
int nsec=ms/1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user