Skip to content

Commit

Permalink
Merge branch 'feature/8450_script_interpreter_dragdrop' of github.com…
Browse files Browse the repository at this point in the history
…:mantidproject/mantid into feature/8450_script_interpreter_dragdrop
  • Loading branch information
NickDraper committed Nov 29, 2013
2 parents aa69b2d + e64882c commit 657a912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ void InstrumentWindow::dropEvent( QDropEvent* e )
wsNames.append(text.mid(startIndex,endIndex-startIndex));
}

for (const auto wsName: wsNames)
foreach (const auto& wsName, wsNames)
{
if(this->overlay(wsName)) e->accept();
}
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ bool MantidUI::drop(QDropEvent* e)
wsNames.append(text.mid(startIndex,endIndex-startIndex));
}

for (const auto wsName: wsNames)
foreach (const auto& wsName, wsNames)
{
importWorkspace(wsName,false);
}
Expand Down

0 comments on commit 657a912

Please sign in to comment.