Settings/InterfacePane: Make message box modal

This commit is contained in:
spycrab
2019-03-03 16:05:07 +01:00
parent 0c886b5e3c
commit 606c61e7c9

View File

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