mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
Add escape route from retries of IPC errors
This commit is contained in:
parent
c58a690bf1
commit
6a7263dc94
@ -1057,9 +1057,14 @@ void MainWindow::release_jt9 ()
|
||||
{
|
||||
if (!l.remove ())
|
||||
{
|
||||
MessageBox::query_message (this
|
||||
, tr ("Error removing \"%1\" - %2").arg (l.fileName ()).arg (l.errorString ())
|
||||
, tr ("Click OK to retry"));
|
||||
if (MessageBox::Cancel == MessageBox::query_message (this
|
||||
, tr ("IPC Error")
|
||||
, tr ("Error removing \"%1\" - %2").arg (l.fileName ()).arg (l.errorString ())
|
||||
, QString {}
|
||||
, MessageBox::Retry | MessageBox::Cancel))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1072,9 +1077,14 @@ void MainWindow::stop_jt9 ()
|
||||
{
|
||||
if (!q.open (QFile::ReadWrite))
|
||||
{
|
||||
MessageBox::query_message (this
|
||||
, tr ("Error creating \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
||||
, tr ("Click OK to retry"));
|
||||
if (MessageBox::Cancel == MessageBox::query_message (this
|
||||
, tr ("IPC Error")
|
||||
, tr ("Error creating \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
||||
, QString {}
|
||||
, MessageBox::Retry | MessageBox::Cancel))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
release_jt9 ();
|
||||
@ -1086,9 +1096,14 @@ void MainWindow::stop_jt9 ()
|
||||
{
|
||||
if (!q.remove ())
|
||||
{
|
||||
MessageBox::query_message (this
|
||||
, tr ("Error removing \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
||||
, tr ("Click OK to retry"));
|
||||
if (MessageBox::Cancel == MessageBox::query_message (this
|
||||
, tr ("IPC Error")
|
||||
, tr ("Error removing \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
||||
, QString {}
|
||||
, MessageBox::Retry | MessageBox::Cancel))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user