martinrotter / textosaurus

Cross-platform text editor based on Qt and Scintilla.
GNU General Public License v3.0
284 stars 44 forks source link

open file with extension from menu #83

Closed tyzmodo closed 4 years ago

tyzmodo commented 4 years ago

Brief description of the issue.

the file extension recognizer in menu-->file-->open doesn't work,you have to drap&drop or rely on sidebar file browser

How to reproduce the bug?

  1. from menu click file-->open file
  2. choose a file name extension like '.txt'or ".c"
  3. no file displayed,only folders listed

What is the expected result?

the file with selected extension name should be displayed

What actually happened?

no file displayed,only folders listed

Other information (logs, see Wiki)

martinrotter commented 4 years ago

which OS do you use? do you use latest textosaurus version? does latest dev build - https://github.com/martinrotter/textosaurus/wiki/Development-builds work?

can you perhaps make a short screen-cast video to demonstrate the bug?

tyzmodo commented 4 years ago

I tried the latest dev build appimages of winodws and linux at home,the problem appears. the dev build link seems expired now so here at my workspace I use a previous downloaded eb848e0 commit appimage to record the video . the video is zipped to attach. screenrecord.zip

tyzmodo commented 4 years ago

sorry i forgot to mention ,my windows version is windows7 x64 my linux version is archlinux,here my linux os at work is linux lite which is similiar to ubuntu. both os is of zh_cn locale

martinrotter commented 4 years ago

i see, i cannot reproduce problem, it just works here, i will do some checks

martinrotter commented 4 years ago

I committed new changes, I added launch flag --nativedialogs which, if used, forces usage of native dialogs which might work better than Qt dialogs for some users.

So wait until new dev build gets generated and then launch Textosaurus with textosaurus.exe --nativedialogs and try to simulate bug and see if it is resolved with this switch ON.

tyzmodo commented 4 years ago

Ok,thank you

tyzmodo commented 4 years ago

Yes,the problem is solved by setting that option on,thank you very much!