Ignore drops from the same fuel window

FossilOrigin-Name: d45b311e64e49833f7c35a4385aa828235d488e2
This commit is contained in:
kostas
2013-02-15 04:02:18 +00:00
parent 345918a5f3
commit d7e80e7d53
3 changed files with 11 additions and 9 deletions

View File

@ -2535,7 +2535,9 @@ void MainWindow::on_tableView_customContextMenuRequested(const QPoint &pos)
//------------------------------------------------------------------------------
void MainWindow::dragEnterEvent(QDragEnterEvent *event)
{
event->acceptProposedAction();
// Ignore drops from the same window
if(event->source() != this)
event->acceptProposedAction();
}
//------------------------------------------------------------------------------
@ -2553,7 +2555,7 @@ void MainWindow::dropEvent(QDropEvent *event)
event->acceptProposedAction();
openWorkspace(finfo.absoluteFilePath());
}
else // Otherwise add
else // Otherwise if not a workspace file and within a workspace, add
{
QStringList newfiles;