Qt/ControllerWindow: Make message boxes modal
This commit is contained in:
parent
7f9084f87f
commit
103cb430f4
|
@ -330,6 +330,7 @@ void ControllersWindow::OnBluetoothPassthroughResetPressed()
|
||||||
{
|
{
|
||||||
QMessageBox error(this);
|
QMessageBox error(this);
|
||||||
error.setIcon(QMessageBox::Warning);
|
error.setIcon(QMessageBox::Warning);
|
||||||
|
error.setWindowModality(Qt::WindowModal);
|
||||||
error.setWindowTitle(tr("Warning"));
|
error.setWindowTitle(tr("Warning"));
|
||||||
error.setText(tr("Saved Wii Remote pairings can only be reset when a Wii game is running."));
|
error.setText(tr("Saved Wii Remote pairings can only be reset when a Wii game is running."));
|
||||||
error.exec();
|
error.exec();
|
||||||
|
@ -351,6 +352,7 @@ void ControllersWindow::OnBluetoothPassthroughSyncPressed()
|
||||||
{
|
{
|
||||||
QMessageBox error(this);
|
QMessageBox error(this);
|
||||||
error.setIcon(QMessageBox::Warning);
|
error.setIcon(QMessageBox::Warning);
|
||||||
|
error.setWindowModality(Qt::WindowModal);
|
||||||
error.setWindowTitle(tr("Warning"));
|
error.setWindowTitle(tr("Warning"));
|
||||||
error.setText(tr("A sync can only be triggered when a Wii game is running."));
|
error.setText(tr("A sync can only be triggered when a Wii game is running."));
|
||||||
error.exec();
|
error.exec();
|
||||||
|
|
Loading…
Reference in New Issue