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
9de02e88
Commit
9de02e88
authored
Aug 17, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open pcbnew with filename even when previously loaded with no filename.
parent
87a5fa18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
mainframe.cpp
kicad/mainframe.cpp
+11
-0
No files found.
kicad/mainframe.cpp
View file @
9de02e88
...
@@ -313,6 +313,7 @@ void KICAD_MANAGER_FRAME::OnRunSchLibEditor( wxCommandEvent& event )
...
@@ -313,6 +313,7 @@ void KICAD_MANAGER_FRAME::OnRunSchLibEditor( wxCommandEvent& event )
void
KICAD_MANAGER_FRAME
::
RunPcbNew
(
const
wxString
&
aProjectBoardFileName
)
void
KICAD_MANAGER_FRAME
::
RunPcbNew
(
const
wxString
&
aProjectBoardFileName
)
{
{
#if 0 // line 171 of modview_frame.cpp breaks this code
KIWAY_PLAYER* frame = Kiway.Player( FRAME_PCB, false );
KIWAY_PLAYER* frame = Kiway.Player( FRAME_PCB, false );
if( !frame )
if( !frame )
{
{
...
@@ -320,6 +321,16 @@ void KICAD_MANAGER_FRAME::RunPcbNew( const wxString& aProjectBoardFileName )
...
@@ -320,6 +321,16 @@ void KICAD_MANAGER_FRAME::RunPcbNew( const wxString& aProjectBoardFileName )
frame->OpenProjectFiles( std::vector<wxString>( 1, aProjectBoardFileName ) );
frame->OpenProjectFiles( std::vector<wxString>( 1, aProjectBoardFileName ) );
frame->Show( true );
frame->Show( true );
}
}
#else
KIWAY_PLAYER
*
frame
=
Kiway
.
Player
(
FRAME_PCB
,
true
);
if
(
!
frame
->
IsVisible
()
)
{
frame
->
OpenProjectFiles
(
std
::
vector
<
wxString
>
(
1
,
aProjectBoardFileName
)
);
frame
->
Show
(
true
);
}
#endif
frame
->
Raise
();
frame
->
Raise
();
}
}
...
...
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