Skip to content

Commit

Permalink
Default to the current staff's string count when adding a new staff.
Browse files Browse the repository at this point in the history
Bug: #193
  • Loading branch information
cameronwhite committed Nov 22, 2015
1 parent bd31b26 commit 6512878
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/app/powertabeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3374,6 +3374,9 @@ void PowerTabEditor::insertStaff(int index)
{
StaffDialog dialog(this);

const Staff &current_staff = getLocation().getStaff();
dialog.setStringCount(current_staff.getStringCount());

if (dialog.exec() == QDialog::Accepted)
{
Staff staff;
Expand Down

0 comments on commit 6512878

Please sign in to comment.