Fix displaying of notes in auto-created MIDI region when it's the first region in...
[ardour.git] / libs / ardour / source_factory.cc
index d07b9d6d690a96b1aa6c7910447326d9811f9d4c..3a657bc0e2fdf1b2eb23fcbf4b52c3c3928b756a 100644 (file)
@@ -169,8 +169,10 @@ SourceFactory::create (Session& s, const XMLNode& node, bool defer_peaks)
 #endif
        
        } else if (type == DataType::MIDI) {
-
-               boost::shared_ptr<Source> ret (new SMFSource (s, node));
+                  boost::shared_ptr<Source> ret (new SMFSource (s, node));
+                      
+                  SourceCreated (ret);
+                  return ret;
        }
 
        return boost::shared_ptr<Source>();