Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
2563dd6d
Commit
2563dd6d
authored
Apr 01, 2014
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project: Do not depend on the workspace location to create a project
parent
e44c2ff2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/Project/Project.cpp
src/Project/Project.cpp
+4
-4
src/Project/Project.h
src/Project/Project.h
+1
-1
No files found.
src/Project/Project.cpp
View file @
2563dd6d
...
...
@@ -176,11 +176,11 @@ Project::loadProject( const QString &fileName )
}
void
Project
::
newProject
(
const
QString
&
projectName
,
const
QString
&
workspace
Path
)
Project
::
newProject
(
const
QString
&
projectName
,
const
QString
&
project
Path
)
{
m_projectName
=
projectName
;
//Current project file has already been delete/nulled by closeProject()
m_projectFile
=
new
QFile
(
workspacePath
+
'/'
+
"
project.vlmc"
);
m_projectFile
=
new
QFile
(
projectPath
+
"/
project.vlmc"
);
save
();
emit
projectLoaded
(
projectName
,
m_projectFile
->
fileName
()
);
}
...
...
@@ -234,8 +234,8 @@ Project::saveAs()
{
if
(
m_projectManagerUi
==
NULL
)
return
;
const
QString
&
fileName
=
m_projectManagerUi
->
getProjectFileDestination
(
m_settings
->
value
(
"vlmc/Workspace"
)
->
get
().
toString
()
);
QFileInfo
fInfo
(
*
m_projectFile
);
const
QString
&
fileName
=
m_projectManagerUi
->
getProjectFileDestination
(
fInfo
.
absolutePath
()
);
if
(
fileName
.
isEmpty
()
)
return
;
saveProject
(
fileName
);
...
...
src/Project/Project.h
View file @
2563dd6d
...
...
@@ -90,7 +90,7 @@ class Project : public QObject, public Singleton<Project>
QString
name
();
bool
closeProject
();
void
saveProject
(
const
QString
&
filename
);
void
newProject
(
const
QString
&
projectName
,
const
QString
&
workspace
Path
);
void
newProject
(
const
QString
&
projectName
,
const
QString
&
project
Path
);
private
slots
:
...
...
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