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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user