Changeset 1562

Show
Ignore:
Timestamp:
02/17/10 21:45:14 (3 years ago)
Author:
mauser
Message:

Bugfix: generate a valid id for new instruments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9.4/gui/src/MainForm.cpp

    r1349 r1562  
    782782        ++nID; 
    783783 
    784         Instrument *pNewInstr = new Instrument(QString( nID ), "New instrument", new ADSR()); 
     784        Instrument *pNewInstr = new Instrument(QString::number( nID ), "New instrument", new ADSR()); 
    785785        pList->add( pNewInstr ); 
    786786