Don't allow to drag'n'drop between databases to fix a crash
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@373 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
parent
4603009ae2
commit
f60c395595
|
@ -206,6 +206,9 @@ void KeepassGroupView::dragEnterEvent ( QDragEnterEvent * event ){
|
||||||
LastHoverItem=NULL;
|
LastHoverItem=NULL;
|
||||||
InsLinePos=-1;
|
InsLinePos=-1;
|
||||||
|
|
||||||
|
if (event->source() == NULL)
|
||||||
|
return; // drag event came from another application
|
||||||
|
|
||||||
if(event->mimeData()->hasFormat("application/x-keepassx-group")){
|
if(event->mimeData()->hasFormat("application/x-keepassx-group")){
|
||||||
DragType=GroupDrag;
|
DragType=GroupDrag;
|
||||||
event->acceptProposedAction();
|
event->acceptProposedAction();
|
||||||
|
|
Loading…
Reference in New Issue