From 738abae55fb33a7c77843a9d84bc14d5439bff1a Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 4 Oct 2018 15:45:32 +0200 Subject: [PATCH] Convert Drag/Drop opening file function to c++ < c++11 --- vv/vvMainWindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 30f7da5..1bf5469 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -832,8 +832,8 @@ void vvMainWindow::dropEvent(QDropEvent *event) if (!mimeData->hasUrls()) return; std::vector images; - for (auto const & url : mimeData->urls()) { - images.push_back(url.toLocalFile().toStdString()); + for (int i=0; iurls().size(); ++i) { + images.push_back(mimeData->urls()[i].toLocalFile().toStdString()); } LoadImages(images, vvImageReader::IMAGE); } -- 2.47.1