mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-03 10:25:15 -04: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 ())
|
if (!l.remove ())
|
||||||
{
|
{
|
||||||
MessageBox::query_message (this
|
if (MessageBox::Cancel == MessageBox::query_message (this
|
||||||
, tr ("Error removing \"%1\" - %2").arg (l.fileName ()).arg (l.errorString ())
|
, tr ("IPC Error")
|
||||||
, tr ("Click OK to retry"));
|
, 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))
|
if (!q.open (QFile::ReadWrite))
|
||||||
{
|
{
|
||||||
MessageBox::query_message (this
|
if (MessageBox::Cancel == MessageBox::query_message (this
|
||||||
, tr ("Error creating \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
, tr ("IPC Error")
|
||||||
, tr ("Click OK to retry"));
|
, tr ("Error creating \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
||||||
|
, QString {}
|
||||||
|
, MessageBox::Retry | MessageBox::Cancel))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
release_jt9 ();
|
release_jt9 ();
|
||||||
@ -1086,9 +1096,14 @@ void MainWindow::stop_jt9 ()
|
|||||||
{
|
{
|
||||||
if (!q.remove ())
|
if (!q.remove ())
|
||||||
{
|
{
|
||||||
MessageBox::query_message (this
|
if (MessageBox::Cancel == MessageBox::query_message (this
|
||||||
, tr ("Error removing \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
, tr ("IPC Error")
|
||||||
, tr ("Click OK to retry"));
|
, tr ("Error removing \"%1\" - %2").arg (q.fileName ()).arg (q.errorString ())
|
||||||
|
, QString {}
|
||||||
|
, MessageBox::Retry | MessageBox::Cancel))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user