Skip to content

Commit

Permalink
Fixed typo and paste bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jowin202 committed Dec 19, 2023
1 parent 358d11f commit d37cc9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ void MainWindow::on_actionPaste_triggered()
if (error.error != QJsonParseError::NoError) return;

QJsonArray sprite_array = this->opt.data.value("sprites").toArray();
this->ui->combo_sprite_col->setCurrentIndex(copied_sprite.value("sprite_color").toInt());
//sprite_array.removeAt(current_sprite);
sprite_array.insert(opt.current_sprite, copied_sprite);
this->opt.data.insert("sprites", sprite_array);
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Sprite Colour</string>
<string>Sprite Color</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit d37cc9a

Please sign in to comment.