mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Avoid the style change crash. This is a temp.workaround until we know how to avoid it, but the usability impact can be neglected
Changing the style takes very long anyway and is a bit fault even if it works.
This commit is contained in:
committed by
Mat Sutcliffe
parent
563a69e3f5
commit
42af7e4e9f
@@ -100,10 +100,18 @@ namespace BlackGui
|
||||
const CGeneralGuiSettings settings = m_guiSettings.getThreadLocal();
|
||||
if (!settings.isDifferentValidWidgetStyle(widgetStyle)) { return; }
|
||||
|
||||
/** because of crash (chnage style crashes UI) we require restart
|
||||
const int ret = QMessageBox::information(this,
|
||||
tr("Change style?"),
|
||||
tr("Changing style is slow.\nThe GUI will hang for some seconds.\nDo you want to save your changes?"),
|
||||
QMessageBox::Ok | QMessageBox::Cancel);
|
||||
|
||||
**/
|
||||
const int ret = QMessageBox::information(this,
|
||||
tr("Change style?"),
|
||||
tr("Changing style requires a restart.\nChanges will be visible a the next start.\nDo you want to save your changes?"),
|
||||
QMessageBox::Ok | QMessageBox::Cancel);
|
||||
|
||||
if (ret != QMessageBox::Ok)
|
||||
{
|
||||
ui->cb_SettingsGuiWidgetStyle->setCurrentText(settings.getWidgetStyle());
|
||||
|
||||
Reference in New Issue
Block a user