Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 731:16932dfaf64e
Default to CSV now
author | Chris Cannam |
---|---|
date | Wed, 15 Jan 2020 14:00:18 +0000 |
parents | 15da3ab3d416 |
children | c980a0300c58 |
comparison
equal
deleted
inserted
replaced
730:8cf265f9b1b3 | 731:16932dfaf64e |
---|---|
2966 bool | 2966 bool |
2967 MainWindowBase::exportLayerTo(Layer *layer, LayerGeometryProvider *provider, | 2967 MainWindowBase::exportLayerTo(Layer *layer, LayerGeometryProvider *provider, |
2968 MultiSelection *selectionsToWrite, | 2968 MultiSelection *selectionsToWrite, |
2969 QString path, QString &error) | 2969 QString path, QString &error) |
2970 { | 2970 { |
2971 if (QFileInfo(path).suffix() == "") path += ".svl"; | 2971 if (QFileInfo(path).suffix() == "") path += ".csv"; |
2972 QString suffix = QFileInfo(path).suffix().toLower(); | 2972 QString suffix = QFileInfo(path).suffix().toLower(); |
2973 | 2973 |
2974 if (suffix == "xml" || suffix == "svl") { | 2974 if (suffix == "xml" || suffix == "svl") { |
2975 return exportLayerToSVL(layer, path, error); | 2975 return exportLayerToSVL(layer, path, error); |
2976 } else if (suffix == "mid" || suffix == "midi") { | 2976 } else if (suffix == "mid" || suffix == "midi") { |