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

目前的打开文件不存在则新建该文件的运行逻辑有bug。 #311

Open
harvey-git opened this issue Aug 8, 2020 · 1 comment

Comments

@harvey-git
Copy link

Please provide the following information

Madedit-Mod version (or branch):
MadEdit-Mod 0.4.19 x86_x64
platform/architecture:
Ubuntu/x86_x64
compiler and compiler version:
GCC 9.2.1 20191008 wxWidgets 3.1.3
please describe what symptom you see, what you would expect to see instead and how to reproduce it.
如题,我在打开文件对话框,输入文件名,选择打开,如果文件不存在,则用该文件名创建了文件,我可以正常编辑,完事儿选择关闭madedit会提示是否保存,选择保存则文件完成最后文件编辑状态写盘然后退出,如果选择不保存,则该文件会被删除,madedit退出,直到这一步逻辑都没问题。
然而如果我在如上操作中创建了文件,在编辑中途即使已经手动按下了保存按钮,完成了保存文件,但只要我没有关闭过该文件重新打开,一旦我在后面的某个时候急着关闭madedit,在弹出的对话框里选择了不保存打算放弃上次保存以来的更改,对不住,这个文件就消失了!
换句话说通过打开对话框输入文件名创建的文件的被删除属性在该文件从创建到保存关闭前是一直存在的,只要该文件没有关闭重新打开过,该文件就不能选择放弃存盘退出,一旦选择放弃存盘,该文件就会被删除!

@LiMinggang
Copy link
Owner

发现一个其他问题修复了。但你这后面的逻辑没看懂,目前是以这种方式创建的文件最初不会真正创建文件,直到你第一次存盘。但是你存盘之后的文件madedit是不会去删除的----没这个功能。
所以,如果你认为是问题,就详细列出步骤的1,2,3,4。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants