Skip to content
Permalink
Browse files
Merge pull request #8088 from Pokechu22/modal-control-mapping
Allow interacting with the render window while configuring controllers
  • Loading branch information
leoetlino committed May 11, 2019
2 parents e35ccd5 + 7c80fcd commit 5774363
Showing 1 changed file with 8 additions and 2 deletions.
@@ -426,7 +426,10 @@ void ControllersWindow::OnGCPadConfigure()
return;
}

MappingWindow(this, type, static_cast<int>(index)).exec();
MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index));
window->setAttribute(Qt::WA_DeleteOnClose, true);
window->setWindowModality(Qt::WindowModality::WindowModal);
window->show();
}

void ControllersWindow::OnWiimoteConfigure()
@@ -451,7 +454,10 @@ void ControllersWindow::OnWiimoteConfigure()
return;
}

MappingWindow(this, type, static_cast<int>(index)).exec();
MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index));
window->setAttribute(Qt::WA_DeleteOnClose, true);
window->setWindowModality(Qt::WindowModality::WindowModal);
window->show();
}

void ControllersWindow::LoadSettings()

0 comments on commit 5774363

Please sign in to comment.