Merge lp:~xzcvczx/kicad/gestfich-cleanup into lp:kicad/product
Proposed by
xzcvczx
Status: | Merged |
---|---|
Merged at revision: | 6419 |
Proposed branch: | lp:~xzcvczx/kicad/gestfich-cleanup |
Merge into: | lp:kicad/product |
Diff against target: |
153 lines (+19/-77) 1 file modified
common/gestfich.cpp (+19/-77) |
To merge this branch: | bzr merge lp:~xzcvczx/kicad/gestfich-cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nick Østergaard (community) | Approve | ||
Wayne Stambaugh | Approve | ||
Review via email: mp+281447@code.launchpad.net |
Description of the change
Cleaned up an old work-around from OpenPDF
Made ExecuteFile quote the command name on osx due to it not working if the text editor had a space in the name
To post a comment you must log in.
1) wxMimeTypeManag er::GetFileType FromExtenstion( ) can return NULL. Your change ignores the return value and calls GetOpenCommand() without testing for NULL. It may not segfault depending on the behavior of GetOpenCommand() but you should still test for NULL and warn the use that the PDF mime type is not assigned.
2) I'm not sure removing all of the default platform specific PDF viewer applications is a good idea. If users do not have the default mime type set for PDF files (it can happen), my guess it that they would expect a reasonable default action to occur. We should get some user input on this before we remove it.
3) There are some coding policy violations. The "if (" statements should be "if( ".