mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
disabled drag&drop move action for importing new comics
This commit is contained in:
@ -110,7 +110,7 @@ void EmptyFolderWidget::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
QList<QUrl> urlList;
|
||||
|
||||
if (event->mimeData()->hasUrls())
|
||||
if (event->mimeData()->hasUrls() && event->dropAction() == Qt::CopyAction)
|
||||
{
|
||||
urlList = event->mimeData()->urls();
|
||||
QString currentPath;
|
||||
@ -131,7 +131,7 @@ void EmptyFolderWidget::dropEvent(QDropEvent *event)
|
||||
{
|
||||
QLOG_DEBUG() << "drop in emptyfolder" << event->dropAction();
|
||||
|
||||
bool validAction = event->dropAction() == Qt::CopyAction || event->dropAction() & Qt::MoveAction;
|
||||
bool validAction = event->dropAction() == Qt::CopyAction; // || event->dropAction() & Qt::MoveAction; TODO move
|
||||
|
||||
if(validAction)
|
||||
{
|
||||
|
Reference in New Issue
Block a user