~ubuntu-branches/ubuntu/oneiric/muse/oneiric

« back to all changes in this revision

Viewing changes to muse/liste/listedit.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-11-17 21:43:38 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101117214338-1hvfl7oo2dsqnvrb
Tags: 1.1-0ubuntu1
* New upstream release (LP: #668631)
* Switch to dpkg-source 3.0 (quilt) format
* Switch to dh7 short form
* debian/rules:
  - added --enable-dssi and --enable-osc to conf flags for dssi support
  - added -ljackserver to LDFLAGS to fix a FTBFS because of --as-needed
* debian/control:
  - added build build dependency on liblo-dev and dssi-dev for dssi support
  - bump Standards-version to 3.9.1. No changes required.
* debian/muse.desktop, debian/muse.xpm: dropped as desktop file and icon is
  now shipped upstream.
* fix-desktop-categories.patch: fix Categories tag in upstream desktop file
* 10_es_locale_fix.dpatch: refreshed and converted to quilt as
  fix_es_locale.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
                              }
228
228
                        }
229
229
                  }
230
 
            if (curPart == 0)
231
 
                  curPart  = (MidiPart*)(parts()->begin()->second);
232
 
            curTrack = curPart->track();
 
230
            
 
231
            // p3.3.34
 
232
            //if (curPart == 0)
 
233
            //      curPart  = (MidiPart*)(parts()->begin()->second);
 
234
            //curTrack = curPart->track();
 
235
            if(!curPart)
 
236
            {
 
237
              if(!parts()->empty())
 
238
              {
 
239
                curPart  = (MidiPart*)(parts()->begin()->second);
 
240
                if(curPart)
 
241
                  curTrack = curPart->track();
 
242
                else  
 
243
                  curPart = 0;
 
244
              }      
233
245
            }
 
246
          }  
234
247
      }
235
248
 
236
249
//---------------------------------------------------------
495
508
      connect(song, SIGNAL(songChanged(int)), SLOT(songChanged(int)));
496
509
      songChanged(-1);
497
510
 
498
 
      curPart   = (MidiPart*)(pl->begin()->second);
499
 
      curPartId = curPart->sn();
 
511
      // p3.3.34
 
512
      // Was crashing because of -1 stored, because there was an invalid
 
513
      //  part pointer stored. 
 
514
      //curPart   = (MidiPart*)(pl->begin()->second);
 
515
      if(pl->empty())
 
516
      {
 
517
        curPart = 0;
 
518
        curPartId = -1;
 
519
      }
 
520
      else
 
521
      {
 
522
        curPart   = (MidiPart*)pl->begin()->second;
 
523
        if(curPart)
 
524
          curPartId = curPart->sn();
 
525
        else
 
526
        {
 
527
          curPart = 0;
 
528
          curPartId = -1;
 
529
        }
 
530
      }
 
531
      
500
532
      initShortcuts();
501
533
      }
502
534
 
515
547
 
516
548
void ListEdit::editInsertNote()
517
549
      {
 
550
      // p3.3.34
 
551
      if(!curPart)
 
552
        return;
 
553
        
518
554
      Event event = EditNoteDialog::getEvent(curPart->tick(), Event(), this);
519
555
      if (!event.empty()) {
520
556
            //No events before beginning of part + take Part offset into consideration
536
572
 
537
573
void ListEdit::editInsertSysEx()
538
574
      {
 
575
      // p3.3.34
 
576
      if(!curPart)
 
577
        return;
 
578
      
539
579
      Event event = EditSysexDialog::getEvent(curPart->tick(), Event(), this);
540
580
      if (!event.empty()) {
541
581
            //No events before beginning of part + take Part offset into consideration
557
597
 
558
598
void ListEdit::editInsertCtrl()
559
599
      {
 
600
      // p3.3.34
 
601
      if(!curPart)
 
602
        return;
 
603
      
560
604
      Event event = EditCtrlDialog::getEvent(curPart->tick(), Event(), curPart, this);
561
605
      if (!event.empty()) {
562
606
            //No events before beginning of part + take Part offset into consideration
578
622
 
579
623
void ListEdit::editInsertMeta()
580
624
      {
 
625
      // p3.3.34
 
626
      if(!curPart)
 
627
        return;
 
628
      
581
629
      Event event = EditMetaDialog::getEvent(curPart->tick(), Event(), this);
582
630
      if (!event.empty()) {
583
631
            //No events before beginning of part + take Part offset into consideration
599
647
 
600
648
void ListEdit::editInsertCAfter()
601
649
      {
 
650
      // p3.3.34
 
651
      if(!curPart)
 
652
        return;
 
653
      
602
654
      Event event = EditCAfterDialog::getEvent(curPart->tick(), Event(), this);
603
655
      if (!event.empty()) {
604
656
            //No events before beginning of part + take Part offset into consideration
620
672
 
621
673
void ListEdit::editInsertPAfter()
622
674
      {
 
675
      // p3.3.34
 
676
      if(!curPart)
 
677
        return;
 
678
      
623
679
      Event ev;
624
680
      Event event = EditPAfterDialog::getEvent(curPart->tick(), ev, this);
625
681
      if (!event.empty()) {