mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(chattextedit.cpp): fix drag-and-drop to be consistent across systems
Add explicit setAcceptDrops(false) to allow parent widget to handle drag-and-drops consistently across various desktop environments. Closes: #2847
This commit is contained in:
parent
684835de1b
commit
70fc247b70
|
@ -26,6 +26,7 @@ ChatTextEdit::ChatTextEdit(QWidget *parent) :
|
||||||
{
|
{
|
||||||
retranslateUi();
|
retranslateUi();
|
||||||
setAcceptRichText(false);
|
setAcceptRichText(false);
|
||||||
|
setAcceptDrops(false);
|
||||||
|
|
||||||
Translator::registerHandler(std::bind(&ChatTextEdit::retranslateUi, this), this);
|
Translator::registerHandler(std::bind(&ChatTextEdit::retranslateUi, this), this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user