Skip to content

Commit

Permalink
fix plugin filter item drag remove bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lheric committed Jul 5, 2014
1 parent 68bba5f commit 0ff2bd2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/views/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,18 @@ void MainWindow::on_actionReloadPluginsFilters_triggered()

void MainWindow::dragEnterEvent(QDragEnterEvent *event)
{
event->acceptProposedAction();
if(event->mimeData()->hasUrls())
event->accept();
else
event->ignore();
}

void MainWindow::dragMoveEvent(QDragMoveEvent *event)
{
event->acceptProposedAction();
if(event->mimeData()->hasUrls())
event->accept();
else
event->ignore();
}

void MainWindow::dropEvent(QDropEvent *event)
Expand Down

0 comments on commit 0ff2bd2

Please sign in to comment.