summaryrefslogtreecommitdiff
path: root/muse2/muse/arranger/pcanvas.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-09-07 01:54:16 +0000
committerTim E. Real <termtech@rogers.com>2012-09-07 01:54:16 +0000
commitb77146a529d27e713f89abdb6b526b8048d8943a (patch)
tree37b397ae84cbf906185c7f9cc00645c8db05a8fc /muse2/muse/arranger/pcanvas.cpp
parent3b57e61b68d727a5300722015cfde332b5bd5cdf (diff)
Feature request 3565102: FLAC audio file import.
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp
index 20c06660..1afea012 100644
--- a/muse2/muse/arranger/pcanvas.cpp
+++ b/muse2/muse/arranger/pcanvas.cpp
@@ -3208,6 +3208,7 @@ void PartCanvas::viewDropEvent(QDropEvent* event)
if (text.endsWith(".wav",Qt::CaseInsensitive) ||
text.endsWith(".ogg",Qt::CaseInsensitive) ||
+ text.endsWith(".flac",Qt::CaseInsensitive) ||
text.endsWith(".mpt", Qt::CaseInsensitive) )
{
@@ -3224,7 +3225,8 @@ void PartCanvas::viewDropEvent(QDropEvent* event)
}
if (track->type() == MusECore::Track::WAVE &&
(text.endsWith(".wav", Qt::CaseInsensitive) ||
- (text.endsWith(".ogg", Qt::CaseInsensitive))))
+ text.endsWith(".ogg", Qt::CaseInsensitive) ||
+ (text.endsWith(".flac", Qt::CaseInsensitive)) ))
{
unsigned tick = x;
MusEGlobal::muse->importWaveToTrack(text, tick, track);