diff --git a/mainwindow.cpp b/mainwindow.cpp index 8011d33..277dc45 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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); diff --git a/mainwindow.ui b/mainwindow.ui index 9437aae..37a18c9 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -355,7 +355,7 @@ - Sprite Colour + Sprite Color