Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
3815087b
Commit
3815087b
authored
Apr 22, 2013
by
Felix Morgner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed implementation of MacOpenFile to make it open files when they are double clicked in Finder.
parent
d3f28fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
kicad.cpp
kicad/kicad.cpp
+8
-12
No files found.
kicad/kicad.cpp
View file @
3815087b
...
...
@@ -56,21 +56,17 @@ void EDA_APP::MacOpenFile( const wxString &fileName )
frame
->
m_ProjectFileName
=
fn
;
if
(
m_fileHistory
.
GetCount
()
)
if
(
!
frame
->
m_ProjectFileName
.
FileExists
()
)
{
frame
->
m_ProjectFileName
=
m_fileHistory
.
GetHistoryFile
(
0
);
if
(
!
frame
->
m_ProjectFileName
.
FileExists
()
)
{
m_fileHistory
.
RemoveFileFromHistory
(
0
);
}
else
{
wxCommandEvent
cmd
(
0
,
wxID_FILE1
);
frame
->
OnFileHistory
(
cmd
);
}
m_fileHistory
.
RemoveFileFromHistory
(
0
);
return
;
}
wxCommandEvent
loadEvent
;
loadEvent
.
SetId
(
wxID_ANY
);
frame
->
OnLoadProject
(
loadEvent
);
wxString
title
=
GetTitle
()
+
wxT
(
" "
)
+
GetBuildVersion
()
+
wxT
(
" "
)
+
frame
->
m_ProjectFileName
.
GetFullPath
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment