UI: Refuse drop operations from our own widgets

The UI feedback when dropping scene / source items on other parts of the
program indicated that something would happen instead of showing the
"no drop" icon.
This commit is contained in:
Richard Stanway
2020-04-13 03:07:30 +02:00
parent 6e48f41d1f
commit a43c10b173

View File

@@ -169,6 +169,12 @@ void OBSBasic::AddDropSource(const char *data, DropType image)
void OBSBasic::dragEnterEvent(QDragEnterEvent *event)
{
// refuse drops of our own widgets
if (event->source() != nullptr) {
event->setDropAction(Qt::IgnoreAction);
return;
}
event->acceptProposedAction();
}