Don't display empty tabs in the port matrix.
[ardour.git] / libs / ardour / source_factory.cc
index 05e7513da9f6c519b9754b1c4d17ecb19b16bc61..357dbbadf8968b6395ac5cbfd8cfb10002f9369e 100644 (file)
@@ -285,8 +285,8 @@ SourceFactory::createWritable (DataType type, Session& s, const std::string& pat
                return ret;
 
        } else if (type == DataType::MIDI) {
-
-               Source* src = new SMFSource (s, path, Source::Flag(0));
+                // XXX writable flags should belong to MidiSource too
+               Source* src = new SMFSource (s, path, SndFileSource::default_writable_flags); 
                // boost_debug_shared_ptr_mark_interesting (src, "Source");
                boost::shared_ptr<Source> ret (src);