UI: Require selected source for Transform shortcut

Fixes #2468
master
Matt Gajownik 2020-04-04 23:39:46 +11:00
parent dbb453d00b
commit beb2af9721
1 changed files with 3 additions and 0 deletions

View File

@ -6225,6 +6225,9 @@ void OBSBasic::on_actionEditTransform_triggered()
if (transformWindow)
transformWindow->close();
if (!GetCurrentSceneItem())
return;
transformWindow = new OBSBasicTransform(this);
transformWindow->show();
transformWindow->setAttribute(Qt::WA_DeleteOnClose, true);