comparison main/MainWindow.cpp @ 792:c8e378ad8a10

Fix local declaration hiding outer scope, which caused export-multiple to export a single file as well as the multiple one (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 09:17:01 +0100
parents 624a8864391e
children 568c6da853e6
comparison
equal deleted inserted replaced
791:ae9c0db88b85 792:c8e378ad8a10
2549 if (!ok || item.isEmpty()) return; 2549 if (!ok || item.isEmpty()) return;
2550 2550
2551 if (item == items[0]) selectionToWrite = &ms; 2551 if (item == items[0]) selectionToWrite = &ms;
2552 2552
2553 } else if (selections.size() > 1) { 2553 } else if (selections.size() > 1) {
2554
2555 bool multiple = false;
2556 2554
2557 if (!asData) { // Multi-file export not supported for data 2555 if (!asData) { // Multi-file export not supported for data
2558 2556
2559 QStringList items; 2557 QStringList items;
2560 items << tr("Export the selected regions into a single file") 2558 items << tr("Export the selected regions into a single file")