Settings/InterfacePane: Make message box modal

This commit is contained in:
spycrab 2019-03-03 16:05:07 +01:00
parent 0c886b5e3c
commit 606c61e7c9
1 changed files with 6 additions and 3 deletions

View File

@ -269,9 +269,12 @@ void InterfacePane::OnSaveConfig()
if (new_language != SConfig::GetInstance().m_InterfaceLanguage)
{
SConfig::GetInstance().m_InterfaceLanguage = new_language;
QMessageBox::information(
this, tr("Restart Required"),
tr("You must restart Dolphin in order for the change to take effect."));
QMessageBox msg(QMessageBox::Information, tr("Restart Required"),
tr("You must restart Dolphin in order for the change to take effect."),
QMessageBox::Ok, this);
msg.setWindowModality(Qt::WindowModal);
msg.exec();
}
const bool use_covers = m_checkbox_use_covers->isChecked();