Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

タイプ別一覧ダイアログのインポート機能バグ修正 #137

Merged

Conversation

berryzplus
Copy link
Contributor

@berryzplus berryzplus commented Jun 18, 2018

タイプ別一覧画面のタイプリストを「基本」だけの状態でインポートすると、
取り込んだ新規設定の名称が「基本」になり、削除できなくなる不具合への対応。 #134

原因は、読込んだ設定ファイルの設定IDを判定すべきところで、
画面上のリストで選択されている設定の設定IDを使っていたこと。

インポート前に「基本」以外をすべて削除しなければ再現しないバグ。
コードの意図がやや不明瞭なので、周辺コードにコメントを追加。

なお、エクスポートしたタイプ別設定のidを0に変更して取り込んだ場合、
ファイル内の設定名に関わらず「基本」として取り込まれ同様の事象が発生すると考えられる。
この問題に対処するにはタイプ別設定インポートの仕組みを見直す必要があるので、
本PRでは当初報告された問題のみに対応するようにしている。

タイプ別一覧画面のタイプリストを「基本」だけの状態でインポートすると、取り込んだ新規設定の名称が「基本」になり、削除できなくなる不具合への対応。
原因は、読込んだ設定ファイルの設定IDを判定すべきところで、リストで選択されている設定IDを使っていたこと。
「基本」しかない状態でインポートを行わない限り異常な動作をしないのでこれまで顕在化しなかったと考えられる。
コードの意図がやや不明瞭なので、周辺コードにコメントも追加。
@berryzplus berryzplus added the 🐛bug🦋 ■バグ修正(Something isn't working) label Jun 18, 2018
@kobake
Copy link
Member

kobake commented Jun 27, 2018

  • 動作確認結果
    • master 版で問題が発生することを確認。
    • 本 PR 版で問題が修正されていることを確認。

Copy link
Member

@kobake kobake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

ご対応ありがとうございました!

@kobake kobake merged commit aa17efb into sakura-editor:master Jun 27, 2018
@berryzplus berryzplus deleted the bugfix/fix_of_typeprop_import branch July 8, 2018 04:14
@m-tmatma m-tmatma added this to the next release milestone Jul 8, 2018
@ds14050 ds14050 added the 🐛bug🦋 ■バグ修正(Something isn't working) label Sep 18, 2018
HoppingTappy pushed a commit to HoppingTappy/sakura that referenced this pull request Jun 11, 2019
…peprop_import

タイプ別一覧ダイアログのインポート機能バグ修正
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug🦋 ■バグ修正(Something isn't working)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants