Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
kicad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
KiCad
KiCad Source Code
kicad
Commits
8f4b8095
Commit
8f4b8095
authored
1 year ago
by
dsa-t
Browse files
Options
Downloads
Patches
Plain Diff
Fix the insufficient privileges message in symbol remap dialog.
(cherry picked from commit
7b94ecdc
)
parent
8432fb4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eeschema/dialogs/dialog_symbol_remap.cpp
+10
-4
10 additions, 4 deletions
eeschema/dialogs/dialog_symbol_remap.cpp
with
10 additions
and
4 deletions
eeschema/dialogs/dialog_symbol_remap.cpp
+
10
−
4
View file @
8f4b8095
...
...
@@ -6,7 +6,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2017 Wayne Stambaugh <stambaughw@gmail.com>
* Copyright (C) 2017-202
2
KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2017-202
3
KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -54,10 +54,16 @@ DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP( SCH_EDIT_FRAME* aParent ) :
{
m_remapped
=
false
;
if
(
!
wxFileName
::
IsDirWritable
(
Prj
().
GetProjectPath
()
)
)
wxString
projectPath
=
Prj
().
GetProjectPath
();
if
(
!
wxFileName
::
IsDirWritable
(
projectPath
)
)
{
DisplayInfoMessage
(
this
,
_
(
"Remapping is not possible because you have insufficient "
"privileges to the project folder '%s'."
)
);
wxString
msg
=
wxString
::
Format
(
_
(
"Remapping is not possible because you have insufficient "
"privileges to the project folder '%s'."
),
projectPath
);
DisplayInfoMessage
(
this
,
msg
);
// Disable the remap button.
m_remapped
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment