Ref T286, fixes for copy component

* copy servers
* clear status
* refresh UI in "silent mode"
This commit is contained in:
Klaus Basan
2018-07-13 01:48:55 +02:00
parent 5d615f5585
commit 64d153b10b
4 changed files with 24 additions and 5 deletions

View File

@@ -156,7 +156,13 @@ namespace BlackGui
bool CCopyModelsFromOtherSwiftVersionsComponent::confirmOverride(const QString &msg)
{
if (ui->cb_Silent->isChecked()) { return true; }
if (!sApp || sApp->isShuttingDown()) { return false; }
if (ui->cb_Silent->isChecked())
{
// allow UI updates
sApp->processEventsFor(50);
return true;
}
const QMessageBox::StandardButton reply = QMessageBox::question(this, QStringLiteral("Confirm override"), withQUestionMark(msg), QMessageBox::Yes | QMessageBox::No);
return reply == QMessageBox::Yes;
}